Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup within popup doesn't pop 1

Status
Not open for further replies.

RPGguy

Programmer
Jul 27, 2001
73
US
I have a form(1) that opens a popup(1) when a button is clicked. In that popup, the user can click a box with a minus(-) sign that should open another popup(2) which is smaller than popup(1). Problem is popup(2) opens in the same space as popup(1) and doesn't really popup at all. I'm using HTML and PHP along with the JS.

Button in form(1):
<input type=&quot;button&quot; value=&quot; Parts List &quot; href=&quot;modelpartlist.html&quot; onclick=&quot;window.open(this.href, 'popupwindow', 'width=760,height=600,scrollbars,resizable');&quot;>

Text to cause popup(1) to popup(2):
<td width=&quot;5&quot; height=&quot;17&quot; bgcolor=&quot;#CCE7FD&quot;>
<input type=&quot;button&quot; value=&quot; --- &quot; href=&quot;doEquipPart.html?part=<? echo $line[Part]; ?>&quot;
onclick=&quot;window.open(this.href, 'popupwindow', 'width=350,height=120,scrollbars=no,resizable=no'); return false&quot; style=&quot;font-size: 8pt&quot;></td></table>

There is an additional problem in that the 'RETURN' button I have on popup(2) does 'window.close' but it exits popup(2) and popup(1) returning all the way back to form(1). Maybe it's due to popup(2) not functioning properly?

Thanks to everyone for their help.

Scott
 
If you change the name you are giving to the popup window in the second form from 'popupwindow' to, say, 'popupwindow2' then it will popup as expected.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top