Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

javascript that works in firefox but not IE

devilsnowdevilsnow Posts: 2Member
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?

Comments

  • zibadianzibadian Posts: 6,349Member
    : 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.
  • devilsnowdevilsnow Posts: 2Member
    : : 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.
  • CyGuyCyGuy Posts: 312Member
    : : : 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,
    [green]WHAT you;see_is_what=you.get;[/green]
    -Russ aka DangeRuss
Sign In or Register to comment.