Maq Posted August 27, 2008 Share Posted August 27, 2008 When the user clicks the submit button I want a new pop-up window to appear. The URL for this window is generated through a jsp variable. When I hit the button once a pop-up window appears but is blank. When I close the pop-up window and hit the submit button again the correct page appears. What could be causing this? Here is my code... ","resizable=1,toolbar=no,width=550,height=250") type="submit" name="submit" value="terminate it" class="fancy"> Link to comment https://forums.phpfreaks.com/topic/121571-solved-pop-up-window-not-working/ Share on other sites More sharing options...
adam84 Posted August 27, 2008 Share Posted August 27, 2008 <input onClick="javascript:window.open('<%=shareURL%>','','resizable=1,toolbar=no,width=550,height=250');" type="submit" name="submit" value="terminate it" class="fancy"> I think window.open takes in 1 or 3 agurements. 1 -> url 3 -> url, window name, window attributes Link to comment https://forums.phpfreaks.com/topic/121571-solved-pop-up-window-not-working/#findComment-627000 Share on other sites More sharing options...
Maq Posted August 27, 2008 Author Share Posted August 27, 2008 I still have the same problem. When I click on the submit button a blank pop-up window appears. But if I close the window and click on the submit button again it appears with the right link. Link to comment https://forums.phpfreaks.com/topic/121571-solved-pop-up-window-not-working/#findComment-627016 Share on other sites More sharing options...
Maq Posted August 27, 2008 Author Share Posted August 27, 2008 I think this is a client/server side conflict. When you hit submit twice the link before the present one is what pops up... Link to comment https://forums.phpfreaks.com/topic/121571-solved-pop-up-window-not-working/#findComment-627019 Share on other sites More sharing options...
Maq Posted August 27, 2008 Author Share Posted August 27, 2008 I actually solved the problem by adding an extra link at the bottom. So first I would have to click the submit button then I would click the "void" link so their is no server side conflict for the pop up. Thanks. Link to comment https://forums.phpfreaks.com/topic/121571-solved-pop-up-window-not-working/#findComment-627025 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.