Hi there,
I am flumoxed with this error that has been plaguing me.
I have loaded up script.aculo.us and prototype, and tried to tet them to run, just simple stuff, to slide down and fade extra information
with the core of it bolded...
<h2 class="ajax_h2" style="cursor: pointer" onclick="showIt(Effect.Appear('latest-posts'))">More latest posts- click for more</h2>
<DIV id="latest-posts" style="display:none">
<h2 class="ajax_h2" style="cursor: pointer" onclick="hideIt(Effect.Fade('latest-posts'))">Click to close </h2>
(on this site http://stuffucanuse.com/)
It works OK for Opera, and IE7, but not for firefox, generating a
"showIt is not defined
onclick(click clientX=0, clientY=0)" error ( you gotta love the firefox webdesign tools, they are amazing for things like this)
Now the same code is on my php page as well.
[PHP]$message = "
<span style=\"cursor: pointer\" onclick=\"showIt(Effect.Appear(\'content$messageco unt\'))\"><small> Click for text</small></span>
<div id=\"content$messagecount\" style=\"display: none;\" ><div class=\"messagetext_online\"> $post_message[message]
<div align=\"right\" style=\"cursor: pointer\" onclick=\"hideIt(Effect.Fade(\'content$messagecoun t\'))\"><small> <b>Close</b></small></div>
</div></div> "[/PHP]
(page here http://xmb.stuffucanuse.com/xmb/misc.php?action=online)
Now this works ONLY in IE, and generates the same errors in firefox, and also in Opera
showIt is not defined
onclick(click clientX=0, clientY=0)
I am stuck, I have looked everywhere on the net, read the forums, tried all I know, but I can't get this simple code to run.
Really would appreciate help on this :) I can't move on until its resolved.
Thanks....