Hey all, maybe you can help me with this, or point me in the right direction.
I've been using a trial version of the Popup Toolkit v.1.4( so far I've managed to create what I want with it, but there's one last bit that I can't seem to quite get to work.
Maybe if you read over what's here, you can give me some suggestions? I think I'm just missing what to do because I'm just a novice with Javascript, and really just have had luck with getting it to work right.
I've been using a trial version of the Popup Toolkit v.1.4( so far I've managed to create what I want with it, but there's one last bit that I can't seem to quite get to work.
Maybe if you read over what's here, you can give me some suggestions? I think I'm just missing what to do because I'm just a novice with Javascript, and really just have had luck with getting it to work right.
Hello Mr. Zabunov,
I've been using a trial version of your Popup Toolkit v.1.4, and I must say
it is fantastic! I can't wait to buy it when I can.
I'd like some help on the following before I buy it though. I need either
text or more an image to be used as a 'button' to close the popup. I've read the User's Manual, but I am unable to get the popup to close with coding inside the popup. Could you please show me an example of what to do?
"Finally, a special case is when you need to place closing code inside the
popup content. For example you have a form in your popup's content and when the form is submitted, the user is directed to a "Thank you" page. Then you need there to be a close link on the "Thank you" page that, when clicked, would close the popup. To achieve this behavior place the following code in the "Thank you" page: <A href='java script: parent.CloseWin ( )'>Close the Popup</A>
If you use JavaScript, to close the popup through script located inside the
popup's content call the function parent.CloseWin(). "
Thank you for your time and a great program,
David[\quote]
He replied:
Hello David,
Yes, this excerpt from the user's manual shows that when you want to close the popup with script or by clicking on an HTML element you need to user the
parent.CloseWin ( )
javascript code. For example, when you have a link HTML element and you need clicking the link to close the popup write it like this:
<A href='java script: parent.CloseWin()'>Close the Popup</A>
This is the hard way. This way woks always and especially is useful when you have an external web page as content of your popup. You may close a "thank you" page this way by clicing on a button or a link or an image.
When you have internal content (edited by the WYSIWYG or the HTML code view editor) you have a better and easier way of placing close buttons/images/HTML elements in the popup content.
Here is the manual about this:
the description is still too short:
Close Link
If you need to insert a "Close this Window" type of link in your popup, check this checkbox and enter the text of the link in the field below the checkbox. Then type [Close] inside the HTML Editor in the place where you would like the link to appear.
What it means is, go to the Popup Content tab, choose internal content. The WYSIWYG will be enabled. Enter you content. Then in the place where you need the close element to appear type [Close]. Then check the checkbox "Insert a Close link in the popup". Then in the field "Enter the text for your close link" type the HTML of tyour close link. An example of a popup with a close link in the form of an image is the "fading_chromeless.ptk" popup project found in the examples directory in your Popup Toolkit TRIAL v1.4 installation. The close link text is as follows:
<img src=' border='0'>
If you have any more questions contact me,
eng. Zabunov