Hi all, 

Using Ajax (with Struts, but it's not really a struts issue), is it
possible to use the function called "processStateChange" by Franck
with an argument ?

I would like to have one function beeing able to be used more times in
a page, updating different span zones according to the control who
called it.

Basically, in what Franck calls "retrieveURL", we have : 
      req.onreadystatechange = processStateChange ;

I'd like to have smthg like
function retrieveURL(name, spanID) {
      ...
      req.onreadystatechange = processStateChange(spanID) ;
      ...
}

function processStateChange (spanID) {
      ...
      document.getElementById("spanID").innerHTML = req.responseText;
      ...
}

But this won't work. What would be the correct way to implement this ? 

Thanks a lot for any help !


-- 
Marc Demlenne

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to