-
AuthorPosts
-
September 12, 2011 at 7:17 pm #168468
Hi, not sure if this a template related issue but i have seen solutions that work for regular joomla 1.6 sites.
i want to open the contact form module using modal and have it close as soon as the submit button is clicked and the form is sent.
i added the code
JHTML::_(‘behavior.modal’); to the parent window.and
class=”modal” on the link.i’m having an issue closing the modal popup when the form is submitted.
i looked at some solutions for this by adding an onclick event to the submit button,like this:
in ja_business/html/com_contact/contact/default_form.php
on line 82:
<input type=”button” value=”Close Window” onclick=”window.parent.document.getElementById( ‘sbox-window’ ).close();” />but it doesn’t close the modal iframe.
see here, at the bottom of this page:
http://www.tamarynd.com/index.php/elul-technologies-ltd
by clicking “Contact Elul Technologies Ltd.”can anyone help ?
thanksjooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 13, 2011 at 3:36 am #412296Hi
I’m checking your issue. Let’s me see if i can help you something.
Thank you
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 13, 2011 at 3:44 am #412297Hi there,
Please try w/ this code
document.getElementById("sbox-btn-close").click();
on onClick event
Thank you
Viet VuSeptember 13, 2011 at 3:45 pm #412408Hi Viet Vu,
this solution didn’t help….. :((
thanks
Boazjooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 13, 2011 at 3:50 pm #412410Hi
Please give me FTP access for a check.
Thank you
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 14, 2011 at 12:05 am #412493Uhm i see why we can’t use these script.
Because you put these script in button of contact form, actually we need action into this form from current page !!! That’s trouble
Let’s me see we have any else solution.
Thank you
Viet VuSeptember 14, 2011 at 11:10 am #412623thanks, i’ll wait for your reply
-
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by buzibuzi 13 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum