OK, Im real new to all of this.
I have a form in a php file that calls it self as the processor.
Upon submission a new window is opened and the results are posted in that new window.
I would like to preload an html file into this window.
window.open('wait.html','test','height=400,width=400')
the reason I want to add this wait.html is that when the form processes there is an exec that takes a bit of time. I just wanted a please wait message in the window untill the php completes and loads the output to the window.
everything works except the loading of the wait.html. I just get a blank window until the php finishes and writes its output.
I can manually open a 'test' window with the same command and the wait.html loads fine.
Just trying to understand why opening it durring the submit will not work.
here is kinda what i have.
echo "<form method='post' action='allocate.php' target=test>";
... some more php to build form ...
echo "<input type=submit onClick=window.open('wait.html','test','height=400,width=400')>";
</form>
Any help would be greatlyh appreciated.