win9x23
05-03-2007, 10:52 AM
I am using AJAX (both my own JS code and Prototype) to retrieve some data from a script. The page currently displayed is in a frame and all the code is in the parent. Everything works great. I then tried to add a 'wait' that shows up just before the ajax call and disappears when the ajax call returns. I cannot get anything to work. I have tried opening a new window, changing in image on the page, and inserting a statement using innerHTML. The problem seems to be that whatever I do beofre the AJAX call does not get posted in time. If I add an 'alert' between the 'wait' action and the AJAX call, everything is fine (for example, the window appears). But if I remove the alert I don't see anything. The AJAX call is pretty fast but I added a delay of 5 seconds just to see what was happening and I still do not see my 'wait' action.
I tried IE6 and Firefox, same result.
I know there is probably a simple answer but I guess its not simple enough for me.
I tried IE6 and Firefox, same result.
I know there is probably a simple answer but I guess its not simple enough for me.