I am using an anonymous function so I c an pass args.  I need the arguments
to be variable and when they actually get called they are the final state of
the variable not the state at which I 'think' I am setting them. 

 

function fillQuiz()

{

var qnum = 0;

var tget = 'q' + qnum;

 

while($(tget)!= null)

{

   new Ajax.Updater($(tget), 'qblock.php', {

     method: 'get',

     parameters: {qnum: $(tget).readAttribute('qnum')},

     onComplete:function(){qListen(qnum)}

   });

   qnum++;

   tget = 'q' + qnum;

}

}

 

 

 

function qListen(_me)

{

   window.alert(_me);

}

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to