Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • buzibuzi Friend
    #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 ?
    thanks

    jooservices Friend
    #412296

    Hi
    I’m checking your issue. Let’s me see if i can help you something.
    Thank you
    Viet Vu

    jooservices Friend
    #412297

    Hi there,
    Please try w/ this code


    document.getElementById("sbox-btn-close").click();

    on onClick event
    Thank you
    Viet Vu

    buzibuzi Friend
    #412408

    Hi Viet Vu,
    this solution didn’t help….. :((
    thanks
    Boaz

    jooservices Friend
    #412410

    Hi
    Please give me FTP access for a check.
    Thank you
    Viet Vu

    jooservices Friend
    #412493

    Uhm 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 Vu

    buzibuzi Friend
    #412623

    thanks, i’ll wait for your reply

    buzibuzi Friend
    #414286

    Hi, any progress on this ?

Viewing 8 posts - 1 through 8 (of 8 total)

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