473,387 Members | 1,891 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,387 software developers and data experts.

Javascript error in IE7, works fine in Firefox??

Hi all,

I am newbie at javascript, but I have a script that animates gif images and worked for a number of years, but now with IE7 it does not work.

I am getting an error on this line of code. Does anything seem out of the ordinary or strange that would cause it not to work in IE7 but still works fine in Firefox 2.0.02???


<A HREF="javascript: func()" onClick="change_mode(1);rev()">

There debugger error I am getting says...

Error: Object does not support this action?

Here is a url to a link of the animation I am using. The stop button does not work and if you try to reverse the animation you get the above error message.
Again this worked fine in IE6 and does work properly in Firefox


http://radar.wright-weather.com/cgi-...3=POE&type2=10


This is a loop of weather radar imagery.

Thanks for any help. I am quite stumped!!

Mike
Mar 27 '07 #1
7 5865
iam_clint
1,208 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. <A HREF="javascript: void(0);" onClick="change_mode(1);rev();">
give this a whirl
Mar 27 '07 #2
Darn, still getting the same error message in the IE7 debugger.

Can you try to to loop it in IE7 and look at the source in the debugger?

Thanks for your help, I really do appreciate it!

Mike
Mar 27 '07 #3
Logician
210 100+
Hi all,

I am newbie at javascript, but I have a script that animates gif images and worked for a number of years, but now with IE7 it does not work.

I am getting an error on this line of code. Does anything seem out of the ordinary or strange that would cause it not to work in IE7 but still works fine in Firefox 2.0.02???


<A HREF="javascript: func()" onClick="change_mode(1);rev()">
All browsers have an error on that line. (rev is not a function). If you alert typeof rev in that line, you get string when it should be function, although rev is and continues to be type function.
Before delving any further you need to validate your broken HTML, just to eliminate it. Then if you still have a problem, post again.

http://validator.w3.org/
Mar 27 '07 #4
rev is a function that is defined in the javascript (stands for reverse) here it is.


//===> "Play reverse"

function rev()

{

stop();

status = 1;

play_mode = 1;

animate_rev();

}

The weird thing is that it worked normally in IE6, but IE7 breaks it and also the stop button (function) doesn't work either. The void trick does not seem to work either. Any other advice. I am at the point I am will to pay someone to fix this dang script. I would like it to work again... Any takers???

Thanks!!!

Mike
Mar 27 '07 #5
Logician
210 100+
rev is a function that is defined in the javascript (stands for reverse) here it is.
Yes I saw it for myself.
The weird thing is that it worked normally in IE6, but IE7 breaks it and also the stop button (function) doesn't work either. The void trick does not seem to work either. Any other advice. I am at the point I am will to pay someone to fix this dang script. I would like it to work again... Any takers???
It doesn't work with IE6 either. I think that the rev() function may be clashing with something with the same name in the code to which you link. When I renamed rev() to REV(), the indicated error cleared.
I suggest that you try it.
Mar 28 '07 #6
That worked! In conjunction with fixing the stop button, it is working again. Many many thanks!!

Mike
Mar 28 '07 #7
Logician
210 100+
That worked! In conjunction with fixing the stop button, it is working again. Many many thanks!!

Mike
If you link to third-party code that you do not control, your code should be written in an encapsulated or object-orientated format, so that object names can not conflict.
Mar 29 '07 #8

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

Similar topics

5
by: LRW | last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the posting--I don't know if the message going out or not) For some reason this javascript just won't work in Firefox. It works fine...
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
1
by: dasayu | last post by:
Hi, I have a custom object called gridWidget. I am consistantly getting an error in FireFox when I click on an href, which calls a function defined on the object. The generated link looks similar...
1
by: prash.marne | last post by:
Hi, I am trying open a simple popup window & my code is .. <html> <head> <title>popup_window</title> <script type="text/javascript"> function popup_onclick(){ my_window =...
12
by: tim | last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more...
2
by: Altman | last post by:
I have created an ascx control and I am calling registerclientscriptblock. The path to the js file is relative to the aspx page and not the ascx file. The function runs fine in IE7 but in...
3
by: =?Utf-8?B?RGlmZmlkZW50?= | last post by:
Hello All, I am trying to offer "Print" functionality using an HTML button with the help of "window.print()" This button works fine in Firefox but not in IE7. I am dumping the entire content...
5
by: mkhines | last post by:
Hello Javascript Experts (of which I am not ! ) -- I'm trying to utilize a javascript I found on the web that allows a user to select a time of day from a simple control. The script works just...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.