Advanced Layer Popup Support Product Page

This topic was archived

Closing the Pop Up

Asked 29 Jan 2008 04:45:12
1
has this question
29 Jan 2008 04:45:12 Jason Sweet posted:
Hello,

I am interested in adding a link or button that will allows the user to close the pop window. I realize that there is an X in the upper right but I would like something additional.

Thanks for your help.

Replies

Replied 29 Jan 2008 09:37:46
29 Jan 2008 09:37:46 Kiril Iliev replied:
Hi Jason,

You might find this FAQ useful: www.dmxzone.com/showDetail.asp?TypeId=7&NewsId=12938

Regards,

DMX Zones Support Team
Replied 10 Feb 2008 16:04:53
10 Feb 2008 16:04:53 Harry Roberts Jr replied:
I'm having trouble getting the popup to close using the java script in the example above. Could you point me to an actual page that I could see how they used the javascrit?

Thanks, it's a great help and perfect for the artist's site I'm working on.
Harry

Harry S Roberts Jr
Replied 11 Feb 2008 21:13:40
11 Feb 2008 21:13:40 Harry Roberts Jr replied:
I still cannot get popup window to close on button click, would you please put a simple example of the total code needed in the popup window.
I seem to have a hard time with javascript. My customer insists on a close button. Thank you.
Harry

Harry S Roberts Jr
Replied 11 Feb 2008 21:40:47
11 Feb 2008 21:40:47 George Petrov replied:
Hi Harry,

The solution outlined in the FAQ should work. Do you have the web page online so I can check what is wrong?

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 11 Feb 2008 21:52:10
11 Feb 2008 21:52:10 Harry Roberts Jr replied:
Hi George, No the pages have not been uploaded. I'm working with an artist and he is very particular and wants everything ready before we upload. He likes the ipod look and overlay but insists on a close button. We have about 100 paintings to use in the popups.
I feel I am making some small error and i cannot find it. I would appreciate any help you could give me as I do not want to use regular popup windows.
Thanks,
Buddy

Harry S Roberts Jr
Replied 11 Feb 2008 22:01:46
11 Feb 2008 22:01:46 Harry Roberts Jr replied:
The code I have in the main page to call the popup is:
<td class = 'gallery' width='33%'><img src="gallery/gallery4-4.jpg" alt="" width="100" height="74" border="4" onClick="dmxAdvLayerPopup('','popup.html','MyWindow','','iPod','center','center',810,700,0,true,true,true,60,'','Linear',2,true,'','Linear',2,true,'',1,5,true,false,'#FFFFFF');return document.MM_returnValue">
<br/>
image 9</a></td>

The code in the popup page is:

<title>Untitled Document</title>
<script type="text/javascript">parent.cDMXPopupWindow.closeWindow('dmxPopupMyWindow')</script>
</head>

<body>

<img src="picts/print-2007-068.jpg" width="800" height="650" />


<FORM>
<input type=button value="Close Window" onClick="javascript:window.close();">
</FORM>

</BODY>


Harry S Roberts Jr
Replied 11 Feb 2008 22:42:09
11 Feb 2008 22:42:09 George Petrov replied:
Ok you need to change the code in the popup to:

<title>Untitled Document</title>
</head>

<body>

<img src="picts/print-2007-068.jpg" width="800" height="650" />


<FORM>
<input type=button value="Close Window" onClick="parent.cDMXPopupWindow.closeWindow('dmxPopupMyWindow')">
</FORM>

</BODY>


Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 11 Feb 2008 22:50:25
11 Feb 2008 22:50:25 Harry Roberts Jr replied:
Works like a charm, thank you so much. I would be embarresed to tell you how many hours I have tried to make this work.
It's just what we want.
Thanks again,
Buddy

Harry S Roberts Jr
Replied 11 Feb 2008 23:14:49
11 Feb 2008 23:14:49 George Petrov replied:
No problem Harry - sorry for your delay.

In the next update we will also put an extra Dreamweaver behavior in for closing the popup, so you can just attach it to any button or other element without coding.
But for now it is indeed some handcoding.

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------

Reply to this topic