Jump to content

[SOLVED] Pop up window not working...


Maq

Recommended Posts

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
Share on other sites


<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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.