Click to See Complete Forum and Search --> : Calling a Popup within a Popup - URGENT


mdawgxi
08-22-2005, 10:30 AM
I have a popup page: http://www.samsclub.com/eclub/popup_std_template.jsp?CntId=oss_SI8

On this popup page there is a link that I want to popup another small window to load a different page. I currently have the link code as: <a href ="javascript:openStdTemplate('oss_popupSI2')">Click Here</a><span class=text-norm-md-bold> for details.</span>

It doesn't work and I just get "Error on Page" at the bottom of the browser page.

Any ideas of how to do this?

rigadon
08-22-2005, 11:03 AM
You haven't defined the openStdTemplate function in your popup window...

ratman
08-22-2005, 11:05 AM
I not sure how to fix your code, but here is what I have used...

First PopUp
<a href="#" onClick="window.open('pop1.html','pop1',config='height=600,width=750,scrollbars=yes')">SamsClub</a>

Second PopUp
<a href="#" onClick="window.open('pop2.html','pop2',config='height=325,width=700,top=150')">Click Here</a>

It is very important that you use different names for the popup windows... here I used 'pop1' and 'pop2'.

Here is a good link that explains what I use....
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp