Results 1 to 4 of 4

Thread: IE bug - onclick

  1. #1
    Join Date
    Dec 2007
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default IE bug - onclick

    here's the template:
    http://80.80.147.122:81/templates/58/

    in IE6/7 when you press one of the search menu items an error popups saying that something is not correct at 'onclick="switchSearchTerm(this)"' but...

    Can anyone help me out...

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    First off just to be neat, you should have your onchange with a capital 'C'. onChange.
    Now that thats done, this:
    Code:
    		e.getElementsByTagName("span")[0].style.minWidthe = "";
    Should be:
    Code:
    		e.getElementsByTagName("span")[0].style.min-width = "";
    And:
    Code:
    		e.getElementsByTagName("span")[0].style.minWidthe = "31px";
    should be:
    Code:
    		e.getElementsByTagName("span")[0].style.min-width = "31px";
    This:
    Code:
    		e.getElementsByTagName("span")[0].style.lineHeight = "";
    And:

    Code:
    		e.getElementsByTagName("span")[0].style.lineHeight = "16px";
    Should be:
    Code:
    		e.getElementsByTagName("span")[0].style.line-height = "";
    And:
    Code:
    		e.getElementsByTagName("span")[0].style.line-height = "16px";
    This:
    Code:
    		e.getElementsByTagName("span")[0].style.backgroundColor = "";
    And:
    Code:
    			e.getElementsByTagName("span")[0].style.backgroundColor = "#FFFFFF";
    Should be:
    Code:
    		e.getElementsByTagName("span")[0].style.background-color = "";
    And:
    Code:
    			e.getElementsByTagName("span")[0].style.background-color = "#FFFFFF";
    Few, that was a lot!
    Jeremy | jfein.net

  3. #3
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Did this help at all? I would like to know because I spent a lot of my time on it.
    Jeremy | jfein.net

  4. #4
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    ...an error popups saying that something is not correct at 'onclick="switchSearchTerm(this)"'....
    Maybe you know this already, but the error can come up at the onclick when there's an error in the function. (Just a note.)
    Last edited by Pseudoquazi; 04-11-2008 at 04:16 AM.

Bookmarks

Posting Permissions

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