Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 3 Hours, 48 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

how to close a modalizer box from within a JS?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: how to close a modalizer box from within a JS?
#7618
how to close a modalizer box from within a JS? 1 Year, 11 Months ago  
I wonder if it is possible to close a modalizer box automatically after a form submission, for example by placing a little JavaScript on the "Thank you for submission"-page. Or for example if I want to place an additional "Close"-button under the displayed text in the modalizer box.

Can you give me any hint if that's possible and how I could do that?
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7624
Re: how to close a modalizer box from within a JS? 1 Year, 11 Months ago  
This differs per modal type. And not easily possible for most.
See here:
www.nonumber.nl/forum/11-modalizer/1403-...window-automatically
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7629
Re: how to close a modalizer box from within a JS? 1 Year, 11 Months ago  
Great, for Highslide it seems to work well (at least in my Chrome browser/Ubuntu). Example:

<a onclick="parent.nn_hs.close()" title="Close (esc)" href="#"><span>Close</span></a>



That's exactly what I need
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7630
Re: how to close a modalizer box from within a JS? 1 Year, 11 Months ago  
P.S. and after form submission inside a modalizer box you could use this code on the "Thank you"-page to close the modalizer box automatically:


<script type='text/javascript'>
onload=parent.nn_hs.close(); // Closes Highslide
</script>";
mbms
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support
hosting joomla