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"> Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.