Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
myrtletrees
Involved
Involved



Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana

PostPosted: Fri Apr 15, 2011 10:24 am Reply with quote

This is really weird, but then again, if there's something weird to be found, I'd be th eone to find it.

Anyway. I get this error only in IE and only in the forums. I'm using the same rollover onmouseout style in my forums as I use on the main page of the site in header.

However, in the forums, I get a Java error, but I don't get the error on the main page with the same style configuraiton.

Here's one of the lines that IE is complaing about.

Code:
<td class="row1" width="10%" align="center" style="cursor:hand" onclick="MM_goToURL('parent,'{U_FAQ}');return document.MM_returnValue" onmouseover="this.style.background=&quot;#CCCCCC&quot;" onmouseout="this.style.background=&quot;#F7F7F7&quot;"><a href="{U_FAQ}" class="mainblock">{L_FAQ}</a></td>



The error IE gives is this:
Code:
Message: Expected ')'

Line: 147
Char: 21
Code: 0
URI: http://www.mysite.com/forums.html


Again, the really weird thing is FF does not complain and I use that same rollover code in the header of my site and IE does not complain about it on the main page. IE only complains in the Forums. Is my onmouseover/out style wrong?

If I change the line back to this:
Code:
<td class="row1" width="10%" align="center"><a href="{U_FAQ}" class="mainblock">{L_FAQ}</a></td>


No more error.
 
View user's profile Send private message
bobbyg
Worker
Worker



Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida

PostPosted: Fri Apr 15, 2011 10:48 am Reply with quote

myrtletrees wrote:
Here's one of the lines that IE is complaing about.

Code:
<td class="row1" width="10%" align="center" style="cursor:hand" onclick="MM_goToURL('parent,'{U_FAQ}');return document.MM_returnValue" onmouseover="this.style.background=&quot;#CCCCCC&quot;" onmouseout="this.style.background=&quot;#F7F7F7&quot;"><a href="{U_FAQ}" class="mainblock">{L_FAQ}</a></td>





I am not sure that ) is the problem. You have unmatched ' in the above statement.
 
View user's profile Send private message Visit poster's website
myrtletrees







PostPosted: Fri Apr 15, 2011 10:57 am Reply with quote

I think I know what you mean:

This:
('parent,'{U_FAQ}')

Should be:
('parent,'{U_FAQ}'')


??
 
bobbyg







PostPosted: Fri Apr 15, 2011 11:03 am Reply with quote

onclick="MM_goToURL('parent,'{U_FAQ}");return document.MM_returnValue"

If you only change that, then you will have unmatched " in this line
 
myrtletrees







PostPosted: Fri Apr 15, 2011 11:06 am Reply with quote

The " is actually two '

Either way I still get the error.

I even tried changing to this:

onclick="MM_goToURL('parent','forums-faq.html');return document.MM_returnValue"
 
bobbyg







PostPosted: Fri Apr 15, 2011 11:15 am Reply with quote

Try this:

<td class="row1" width="10%" align="center" style="cursor:hand" onclick="MM_goToURL('parent,' '{U_FAQ}');return document.MM_returnValue" onmouseover="this.style.background=&quot;#CCCCCC&quot;" onmouseout="this.style.background=&quot;#F7F7F7&quot;"><a href="{U_FAQ}" class="mainblock">{L_FAQ}</a></td>
 
myrtletrees







PostPosted: Fri Apr 15, 2011 11:18 am Reply with quote

bobbyg wrote:
Try this:

<td class="row1" width="10%" align="center" style="cursor:hand" onclick="MM_goToURL('parent,' '{U_FAQ}');return document.MM_returnValue" onmouseover="this.style.background=&quot;#CCCCCC&quot;" onmouseout="this.style.background=&quot;#F7F7F7&quot;"><a href="{U_FAQ}" class="mainblock">{L_FAQ}</a></td>


Same error Mad

If I completely remove this:
onclick="MM_goToURL('parent,' '{U_FAQ}');return document.MM_returnValue"

The error goes away but then the table column is not 'clickable'. Not a big deal, but it would be nice to figure out why they code gives an error.

EDIT: I have that same rollover effect on another site and it does not give an error in IE....crazy. The only difference is I'm trying to use this code in the forums while on the other site it's just plain html/php.
 
bobbyg







PostPosted: Fri Apr 15, 2011 11:36 am Reply with quote

change the event name from onclick=.... to onmousedown=
 
myrtletrees







PostPosted: Fri Apr 15, 2011 11:39 am Reply with quote

bobbyg wrote:
change the event name from onclick=.... to onmousedown=


Similar error but now only when you try to CLICK the table column

Webpage error details
Message: Object expected
Line: 147
Char: 1
Code: 0
 
myrtletrees







PostPosted: Fri Apr 15, 2011 12:27 pm Reply with quote

Dangitt. I am an idiot!!!

I was missing this script from my <head

<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>

Working now. Thanks or hanging in there with me through my idiocracy.
 
bobbyg







PostPosted: Fri Apr 15, 2011 12:31 pm Reply with quote

IE still has problems but workarounds can be used in many cases:

This link discusses many of the attributes and provides some workarounds:

http://webbugtrack.blogspot.com/2007/08/bug-242-setattribute-doesnt-always-work.html
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©