Ok cool thanks, it worked when i just redirect the greybox directly to the page that displays the Thanks and closes, there it worked, but when I have the greybox redirect to the contact form and from there when there is submited the form it redirects to the thanks page which is displays but the greybox there in that moment doesnt close.
On Dec 6, 8:40 am, Logos <[EMAIL PROTECTED]> wrote: > Ah, I see what you're doing. Instead of GB_hide(), use top.GB_hide() > (the greybox is controlled from the topmost window, not from inside > the greybox page). Remove GB_CURRENT.hide() and window.close(). Your > problem should be solved :) > > Tyler Stylehttp://www.nirdvana.com > > On Dec 5, 1:40 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > >www.jermcpa.com/contact.htmlthereyou can see how I am using it. When > > the user clicks send the info is sent to an email address and the page > > is redirected to another one in black that has the alert() java > > function to display the thank you and when he clicks ok I want the > > grey box to close. > > > On Dec 5, 2:01 pm, Logos <[EMAIL PROTECTED]> wrote: > > > > How are you sending the form data, and where? Via AJAX, or are you > > > submitting the form to the page it is embedded in, or to another page, > > > or what? > > > > How you interact with the user after you send the form depends > > > entirely on how the form is being sent, so can't really answer the > > > question until we know that. > > > > Also, I believe it's GB_hide(), not greybox.hide(). > > > > Tyler Stylehttp://www.nirdvana.com > > > > On Dec 5, 5:27 am, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > > So after the button is clicked and the information is sent just write > > > > Greybox.Hide();? > > > > > On Dec 5, 2:04 am, "Lakshmiprasad Manchala" <[EMAIL PROTECTED]> > > > > wrote: > > > > > > so are you submitting the form when the user clicks on send.. > > > > > > if so write a function onSubmit and display ur message there and when > > > > > he > > > > > clicks a particular button after do Greybox.Hide(); > > > > > > Zsa Zsa Gabor - "A man in love is incomplete until he has married. > > > > > Then > > > > > he's finished." > > > > > > On Fri, Dec 5, 2008 at 8:31 AM, [EMAIL PROTECTED] < > > > > > > [EMAIL PROTECTED]> wrote: > > > > > > > In my page I call the greybox to display a contact form, what i want > > > > > > is that when the user enter his/her information and hits send I can > > > > > > display a message saying thank you and when he hits the of button > > > > > > the > > > > > > greybox automatically closes. How can I achieve this?- Hide quoted > > > > > > text - > > > > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GreyBox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/greybox?hl=en -~----------~----~----~----~------~----~------~--~---

