...

View Full Version : iterator crashing, not sure where...



Sleeping_Troll
06-22-2009, 01:52 PM
This is the script:


$$(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?

mrhoo
06-22-2009, 02:05 PM
Count your parentheses- you need another to close the each expression.

Sleeping_Troll
06-22-2009, 02:17 PM
Yup, $$('dropmenudiv a') helps too! Time for a break, thx!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum