Author |
Message |
myrtletrees
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/44fbb573445a9d36e3110.jpg)
Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana
|
Posted:
Fri Apr 15, 2011 10:24 am |
|
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="#CCCCCC"" onmouseout="this.style.background="#F7F7F7""><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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bobbyg
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/47640777475ce61275311.jpg)
Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida
|
Posted:
Fri Apr 15, 2011 10:48 am |
|
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="#CCCCCC"" onmouseout="this.style.background="#F7F7F7""><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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 10:57 am |
|
I think I know what you mean:
This:
('parent,'{U_FAQ}')
Should be:
('parent,'{U_FAQ}'')
?? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bobbyg
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 11:03 am |
|
onclick="MM_goToURL('parent,'{U_FAQ}");return document.MM_returnValue"
If you only change that, then you will have unmatched " in this line |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 11:06 am |
|
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" |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bobbyg
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 11:15 am |
|
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="#CCCCCC"" onmouseout="this.style.background="#F7F7F7""><a href="{U_FAQ}" class="mainblock">{L_FAQ}</a></td> |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 11:18 am |
|
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="#CCCCCC"" onmouseout="this.style.background="#F7F7F7""><a href="{U_FAQ}" class="mainblock">{L_FAQ}</a></td> |
Same error
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bobbyg
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 11:36 am |
|
change the event name from onclick=.... to onmousedown= |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 11:39 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 12:27 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bobbyg
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 15, 2011 12:31 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|