Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts

    IE & select onchange

    so I have this very simple line of html

    Code:
    <select name = "myselect" id = "myselect" onchange="myfunction();">
    Works perfectly in firefox, calls the function and runs it perfectly.... however in IE it says 'Object doesn't support this action' pointing at that line of perfectly simple html. So I figured the problem was in the function itself. So I rewrote the function to be just

    function myfunction()
    {
    }

    and I get the same error.... what am I doing wrong?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Error number in IE is misleading. The error might be somewhere else in the code.

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    I think the problem might be that it didnt like the function name.... it was called children

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Might be a reserved word in IE. Try changing it to something else.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •