My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 508: Make the response of a form open on the same page in the modal
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jul 2010


 
Reported by greatmed...@gmail.com, Jul 21, 2010
This is not a defect but a support request.

I would like to use nyroModal with a cms (drupal). How could i do the following.

> click link, opens nyroModal with a form
> form is submitted the response opens in the same or a new modal, if new closes the form modal. Maybe also attach a button to close the confirm modal?

I have tried much, even created some extra template files that only display the content but that is just a very bulky and unfriendy way to do this. NyroModal is very big and support a whole lot. So i hope this can be achieved in a 'good' way. Hope someone can help me out.
Jul 21, 2010
#1 greatmed...@gmail.com
i think i missed the point with my post. The biggest issue is that the complete template is wrapped around the whole form. And offcourse i could call the #id of the form, but how would i then call the confirmation.
Jul 22, 2010
Project Member #2 nyro...@gmail.com
To open the form in the modal, you just have to add the nyroModal class on the form tag.
To add a close link, you have to add the nyroModalClose class on it.
Status: Fixed
Jul 24, 2010
#3 greatmed...@gmail.com
Ok so the form opens in the modal by selecting a specific id. The form is open and i fill the form and press submit, the form has class nyroModal, now i get the response but the problem with the response is that i get the whole theme around the response. I'm looking how the get the forms working with ajax to make things smoother.

nyrodev: maybe you could tell me how to achieve the following. I use drupal and my javascript gets rendered in the head. When i call a specific id of a page with nyromodal, how can i get that javascript to come with the page. Is setting rel="forceLoad" enough for specific id's or does this only work if you call for a whole page?
Jul 24, 2010
Project Member #4 nyro...@gmail.com
I have no idea how works drupal... so I can't help you here to remove all your HTML.
The thing you can do with nytoModal si using the targeting content feature by simply set your form action like : myPage.html#myId
Whre myId is the id of the content you want to show
Jul 24, 2010
#5 greatmed...@gmail.com
Ok, i changed the workflow a bit around. Now i can include just a whole page without the template, and still make it load all the javascript and css so i'm gone check it out how to get it working this way.

Powered by Google Project Hosting