I am using ajax to get some data back from the server. I want to insert this data on my page at some element in the document (where depends on where the viewer clicked on the page). So I would like to remember what element on the page was clicked. Is there a way to pass a parameter to the function that will gain control when a response comes back from the server. I find that if I add a parameter to the following statement:
http_request.onreadystatechange = do_whatever;
http_request.onreadystatechange = do_whatever(parameter);
then I get nothing at all bacl from the server. Is there some way that I can pass my parameter to the function I have indicated for http_request.onreadystatechange?