473,513 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Script.aculo.us effect not working in Firefox?

Does anyone have any idea why this effect using script.aculo.us is working
in Opera, but not Firefox?

http://examples.tobyinkster.co.uk/Ba...20tooltip.html

(I've not had the courage to even try it in IE yet!)

Any ideas for a fix?

Thanks

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 22 '07 #1
6 2261
Toby Inkster wrote:
Does anyone have any idea why this effect using script.aculo.us is working
in Opera, but not Firefox?

http://examples.tobyinkster.co.uk/Ba...20tooltip.html

Error: target.innerText has no properties
Source File:
http://examples.tobyinkster.co.uk/Ba...es/bubble-t.js
Line: 47

innerText is not defined in the W3C DOM, it is orginally part of the IE
4 (and later) HTML DOM and Opera in its attempt to work with as many
pages as possible supports it too. Mozilla mainly supports innerHTML
from the IE 4 DOM but has not made an attempt to support innerText. The
W3C DOM Level 3 Core has a similar property named textContent that
Firefox 1.0 and later support, additionally the W3C DOM Level 2 allows
you to concatenate the nodeValue properties of all text nodes yourself
if needed.
You get a further error
Error: elem has no properties
Source File:
http://examples.tobyinkster.co.uk/Ba...es/bubble-t.js
Line: 108
with Firefox on that page.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jan 22 '07 #2
In article <ih************@ophelia.g5n.co.uk>,
Toby Inkster <us**********@tobyinkster.co.ukwrote:
Does anyone have any idea why this effect using script.aculo.us is working
in Opera, but not Firefox?

http://examples.tobyinkster.co.uk/Ba...20tooltip.html

(I've not had the courage to even try it in IE yet!)

Any ideas for a fix?

Thanks

FireFox Mac 2.0.0.1 gives:

When you hover onto the link:

Error: target.innerText has no properties
Source File:
http://examples.tobyinkster.co.uk/Ba...ip_files/bubbl
e-t.js
Line: 47

When you hover off:

Error: elem has no properties
Source File:
http://examples.tobyinkster.co.uk/Ba...ip_files/bubbl
e-t.js
Line: 108

In safari you get a new baloon each time you hover on.

-- tim
Jan 22 '07 #3
Toby Inkster wrote:
Does anyone have any idea why this effect using script.aculo.us is working
in Opera, but not Firefox?
http://examples.tobyinkster.co.uk/Ba...20tooltip.html
(I've not had the courage to even try it in IE yet!)
My thanks to Martin and Tim. I've made a couple of changes, and it now
seems to be working in Opera, Firefox, and surprisingly MSIE 6!

http://examples.tobyinkster.co.uk/Ba...20tooltip.html

In iCab I'm nearly there, but I don't think I have the patience to figure
out what's going wrong for such a small user base (the final script
won't perform anything essential, so I'm not too worried about it not
working for a small percentage of people), so I've just bailed out with:

if (navigator.vendor=='iCab')
return 1;

in the initialisation function.

I don't even seem to be close with Safari though. Does anyone know of a
Javascript debugging tool for Webkit or KHTML?

Or have I done something obviously dumb? Although I consider myself a
decent programmer, Javascript is far from my forte, so I'm probably
churning out a bunch of rubbish here.

Thanks in advance for any more advice you can give,

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 23 '07 #4
Toby Inkster wrote:
Toby Inkster wrote:
Does anyone have any idea why this effect using script.aculo.us is working
in Opera, but not Firefox?
http://examples.tobyinkster.co.uk/Ba...20tooltip.html
(I've not had the courage to even try it in IE yet!)

My thanks to Martin and Tim. I've made a couple of changes, and it now
seems to be working in Opera, Firefox, and surprisingly MSIE 6!

http://examples.tobyinkster.co.uk/Ba...20tooltip.html

In iCab I'm nearly there, but I don't think I have the patience to figure
out what's going wrong for such a small user base (the final script
won't perform anything essential, so I'm not too worried about it not
working for a small percentage of people), so I've just bailed out with:

if (navigator.vendor=='iCab')
return 1;

in the initialisation function.

I don't even seem to be close with Safari though. Does anyone know of a
Javascript debugging tool for Webkit or KHTML?
It's always good to read the FAQ:

<URL: http://www.jibbering.com/faq/index.html#FAQ4_43 >

Safari reports:

Value undefined (result of expression target.previous) is not object.
http://examples.tobyinkster.co.uk/Ba...es/bubble-t.js

Line 106

Which is the last line of:

function balloonClose (e)
{
var target = $(Event.element(e));
var elem = target.previous('div');
>
Or have I done something obviously dumb? Although I consider myself a
decent programmer, Javascript is far from my forte, so I'm probably
churning out a bunch of rubbish here.
Your simple page is over 200kB of data, the use of Prototype and
Scriptaculous is a serious overhead that is unlikely to be needed just
to get some cartoon balloons.

You might like to try the lighter-weight FORK library:

<URL: http://forkjavascript.org/ >

Though you'll need to build a few of you own effects, you won't be
forcing visitors to download thousands of lines of unused code.

--
Rob

Jan 23 '07 #5
RobG wrote:
<URL: http://www.jibbering.com/faq/index.html#FAQ4_43 >
Thanks!
Value undefined (result of expression target.previous) is not object.
http://examples.tobyinkster.co.uk/Ba...es/bubble-t.js
Hmmm... that's not good. Element.previous() is a prototype.js method, so
it looks like the bug might be there. I'll have to look into it tomorrow.

Thanks again

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 24 '07 #6
Might be easier to just use IE7.
"Toby Inkster" <us**********@tobyinkster.co.ukwrote in message
news:ih************@ophelia.g5n.co.uk...
Does anyone have any idea why this effect using script.aculo.us is working
in Opera, but not Firefox?

http://examples.tobyinkster.co.uk/Ba...20tooltip.html

(I've not had the courage to even try it in IE yet!)

Any ideas for a fix?

Thanks

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 24 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
1543
by: Yousuf Khan | last post by:
Hi, I have this pre-built JS routine that creates a text animation special-effect. The routine was included inside a freeware HTML editor, called AceHTML. The problem is that it seems to work only...
9
1682
by: Brett | last post by:
Is there a script for depressible buttons that work in Mozilla and IE? This works nice but only in IE: http://www.dynamicdrive.com/dynamicindex5/depressbutton.htm. Thanks, Brett
3
6520
by: pantagruel | last post by:
The following does not work in firefox: <script defer="defer"> var x=document.getElementsByName("repositoryNamespace") alert(x.length + " elements!")
1
1384
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
1006
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...
7
1283
by: Dr J R Stockton | last post by:
I've heard that at <URL:http://www.merlyn.demon.co.uk/js-clndr.htm#P> and using Opera the suffixed dates in the yellow box appear in a single long line instead of in the obvious weekly manner. ...
5
2252
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...
2
1978
by: netchicken | last post by:
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...
12
5440
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...
0
7259
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
7158
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
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7523
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...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.