JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2059
Number of posts: 5157

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
javascript that works in firefox but not IE Posted by devilsnow on 8 May 2008 at 7:24 AM
Hello, I have tried to write a javascript. However, after i tested my script. I found out that it only works in firefox but not in IE. Does anyone have any idea that why is it like this?
Report
Re: javascript that works in firefox but not IE Posted by zibadian on 8 May 2008 at 8:57 AM
: Hello, I have tried to write a javascript. However, after i tested
: my script. I found out that it only works in firefox but not in IE.
: Does anyone have any idea that why is it like this?
:
Yes, because Microsoft considers itself above the rest of the browser producers and think they don't need to adhere to standards, like everyone else.
Solution:
- write your javascript code twice: once for firefox/opera/safari and once for IE
- inform your users not to use IE, but a good browser instead.
Report
Re: javascript that works in firefox but not IE Posted by devilsnow on 8 May 2008 at 9:50 AM
: : Hello, I have tried to write a javascript. However, after i tested
: : my script. I found out that it only works in firefox but not in IE.
: : Does anyone have any idea that why is it like this?
: :
: Yes, because Microsoft considers itself above the rest of the
: browser producers and think they don't need to adhere to standards,
: like everyone else.
: Solution:
: - write your javascript code twice: once for firefox/opera/safari
: and once for IE
: - inform your users not to use IE, but a good browser instead.

I have tried the script on each individual browser and it all works except IE. Maybe I can paste the code here and hope you will be able to make works in IE.

The output from other browsers is the result I wanted but the output from IE is undefined.
Report
Re: javascript that works in firefox but not IE Posted by CyGuy on 8 May 2008 at 4:58 PM
: : : Hello, I have tried to write a javascript. However, after i tested
: : : my script. I found out that it only works in firefox but not in IE.
: : : Does anyone have any idea that why is it like this?
: : :
: : Yes, because Microsoft considers itself above the rest of the
: : browser producers and think they don't need to adhere to standards,
: : like everyone else.
: : Solution:
: : - write your javascript code twice: once for firefox/opera/safari
: : and once for IE
: : - inform your users not to use IE, but a good browser instead.
:
: I have tried the script on each individual browser and it all works
: except IE. Maybe I can paste the code here and hope you will be able
: to make works in IE.

This code does not throw error in my browser. Perhaps it is in the way you manipulate the DOM.

By The Way, I only use notepad, so using the all the code &<> would be helpful

Regards,
WHAT you;see_is_what=you.get;
-Russ aka DangeRuss



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.