473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Trying to get script.aculo.us showIt to run. desperate...

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....
Jun 21 '07 #1
2 1972
pbmods
5,821 Expert 4TB
Heya, netchicken. Welcome to TSDN!

Where is showIt defined? I don't see it anywhere in your source....
Jun 22 '07 #2
Hey there :)
Thanks for the fast reply :)

I don't know where or how to define it.
There is nothing about defining it on script.aculo.us at all, no one else seems to have a problem with it either.

Is it that the script is trying to run before the js packages have loaded?



Heya, netchicken. Welcome to TSDN!

Where is showIt defined? I don't see it anywhere in your source....
Jun 22 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Ideasman | last post by:
Hi I have a made a script that process normals for a flat shaded 3D mesh's. It compares every vert with every other vert to look for verts that can share normals and It takes ages. I'm not...
15
by: kpp9c | last post by:
I am kind of in a bit of a jam (okay a big jam) and i was hoping that someone here could give me a quick hand. I had a few pages of time calculations to do. So, i just started in on them typing...
1
by: Grzegorz ¦lusarek | last post by:
Hello everyone. I1m writing webb aplication using AJAX (prototype library: http://prototype.conio.net/ and scriptacuolous:http://script.aculo.us/). My Problem is that that I'm doing...
0
by: jon.ronnenberg | last post by:
Hi all. Does any of you guys know of any AJAX .NET components that uses script.aculo.us (or prototype, lightbox or Rico for that matter)? Right now I'm leaning towards using Jayrock...
6
by: Toby Inkster | last post by:
Does anyone have any idea why this effect using script.aculo.us is working in Opera, but not Firefox? http://examples.tobyinkster.co.uk/Balloons2/Balloon%20tooltip.html (I've not had the...
1
by: hedgehog | last post by:
I've always been a do-it-yourselfer when it comes to referencing DOM, doing lil animations and Ajax queries, etc, but I thought I'd give someone else's toolkit a spin. Aside from sorting out...
5
by: empiresolutions | last post by:
Hello Fellow Developers, I am using the awesome drag and drop script found at http://script.aculo.us/. I have also added a modification that interacts to a db for reordering upon release of a...
12
by: Daz | last post by:
Hi guys, I'm trying to make a script.aculo.us sortable list have a limited number of elements in it. Now I can check for this really easily and have a warning message, and of course the php...
3
by: stealthmode666 | last post by:
Maybe a strange request. I tried using a .php script that works with a small number of fields and sends the data to an email address and also displays a thank-you page and sends an auto-reply to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.