| Issue 508: | Make the response of a form open on the same page in the modal |
‹ Prev
231 of 231
|
| 1 person starred this issue and may be notified of changes. | Back to list |
|
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
Jul 22, 2010
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
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
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
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. |
||||||||