HighDots Forums  

Problem with window.open and form, help me please :(

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Problem with window.open and form, help me please :( in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cooper
 
Posts: n/a

Default Problem with window.open and form, help me please :( - 12-18-2008 , 05:15 PM






Hello, i have a little problem; i have a form so defined:

<form id="form1" method="post" action="mypage.php" target="mytarget"
onsubmit="return false;">
<input type="submit" name="join" value="Click
Here!"
onclick="window.open('about:blank', this.form.target,
'width=320,height=240,resizable=no,
toolbar=no,location=no,directories=no,menubar=no') ;
setTimeout ("this.form.submit()", 10000); " />
</form>

The problem is that i click on "Click Here!" a new window is opened, but not
every content of "mypage.php" is in this window opened, in sense that
sometime is in window "mytarget" and othertime in browser, and page of
"mytarget" window remain blank.
As i can solve this problem, in mode that ALL TIME content of "mypage.php"
is put in "mytarget" window? and not in browser?
Thanks, for all and Good Christmas.
Cooper:


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.