Results 1 to 3 of 3

Thread: why my code doesn't work only in Chrome and Safari?

  1. #1
    Join Date
    Oct 2009
    Posts
    38
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default why my code doesn't work only in Chrome and Safari?

    hi everybody!!
    i made a gallery that works fine in Firefox, IE and Opera but it breaks in Chrome and Safari??

    isn't this correct in my code?? :
    Code:
    $('sel').change=update_tag();
    for (var ii=0; ii<images.length; ii++) {
        $('thumb_'+images[ii].idnode).setStyle('border:medium solid transparent');
    }
    Does anybody have any ideas of what might happening??
    Last edited by tpravioti; 02-03-2010 at 10:21 AM.

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

    Default

    You'd either have to do:
    Code:
    $('sel').change(function(){
      update_tag()
    });
    Or:
    Code:
    $('sel').bind('change', function(){
      update_tag();
    });
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    tpravioti (02-02-2010)

  4. #3
    Join Date
    Oct 2009
    Posts
    38
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Cool

    thanks..finally it was so easy!!

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
  •