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 3 of 3
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    iterator crashing, not sure where...

    This is the script:
    Code:
    $$(dropmenudiv a).each(item,item.Event.observe('click',function(){
      new Ajax.Updater('panelUser','../php/getpanelUser.php?document='+item.id);
    });
    firefox reports "missing ) after argument list" which of course means that execution did not get to that final ), can anyone see why?

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Posts
    726
    Thanks
    35
    Thanked 132 Times in 123 Posts
    Count your parentheses- you need another to close the each expression.

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yup, $$('dropmenudiv a') helps too! Time for a break, thx!


  •  

    Posting Permissions

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