Subj : Javascript infinite loop To : netscape.public.mozilla.java,netscape.public.mozilla.jseng From : "Andrea" Date : Thu May 08 2003 03:39 pm Hello, First of all, sorry but my english isn't good! Well, I'm developing a website frame based. It consist of 2 frames: the first let users able to see the contests, the second frame isn't visible and is able to make server side actions submitting itself. So when the user edit any data and confirm clicking a button, a Javascript function write those data in a textbox contained in the second frame. In the second frame there is a interval that run a second Javascript function, this function checks if there is anything in the textbox and if the textbox is not empty make a submit so server side a php function can make the operation requested... All runs but I need also to make a loop in the first function waiting until the second frame does the reload and... I don't know how can I do it! In detail the problem is not to know how to testing is the second frame has been reloaded but I don't know how to implement the loop for testing it; I tryed to insert a simple while loop like this: function SaveData() { .... .... .... while () { window.status='Saving data ...'; } window.status='Data saved!'; .... .... .... } But it don't work because while the loop run nothing else can run (including the interval in the second frame!) so this loop became infinite!!! Exist a Javascript istruction to put in the loop that enable the execution of the other process? (something like the DoEvents istruction in VB) PS: I can't develop another interval in the first frame... Anyone can help me? Thank you in advance. .