Akujin
2007-May-29 10:27 UTC
Modal Window Stealing Elements from Form. Need Elegant Solution.
I''m using Prototype.js with Control.modal to create a modal window on my IPB Forum which takes all the various topic posting/replying/ editing options and places them into a Modal window. The inherent nature of this action is to take the contents of whatever DIV I told Control.Modal to make a modal window out of and place the entire innerHTML of that DIV into a separate DIV outside the main content. This creates a problem where my elements are suddenly taken out of the form and when I click submit all the options are completely gone. We would like to use the modal since it makes the entire posting process that much nicer but again we need an elegant solution. The none elegant solution would be to write a script that creates hidden form elements based on the form elements'' values in the modal window but again I''d rather not go with bad code. Is it possible to force the modal window to not go out of it''s initial position? or Can I submit the values of two different forms into the same ''action'' value page? (In this case a PHP page that will take $_POST variables) ~Digi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Mohamed Mahir Ahamed Ibrahim
2007-May-29 14:40 UTC
Re: Modal Window Stealing Elements from Form. Need Elegant Solution.
Hi, You can check my site which is Tamil (a south indian language) blogs reader where u can get some idea.... i developed with prototype xilinus window package.... add: http://techtamil.in/ if u need further help u can mail me... Mohamed Mahir On 5/29/07, Akujin <digitalisakujin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I''m using Prototype.js with Control.modal to create a modal window on > my IPB Forum which takes all the various topic posting/replying/ > editing options and places them into a Modal window. > > The inherent nature of this action is to take the contents of whatever > DIV I told Control.Modal to make a modal window out of and place the > entire innerHTML of that DIV into a separate DIV outside the main > content. > > This creates a problem where my elements are suddenly taken out of the > form and when I click submit all the options are completely gone. > > We would like to use the modal since it makes the entire posting > process that much nicer but again we need an elegant solution. > > The none elegant solution would be to write a script that creates > hidden form elements based on the form elements'' values in the modal > window but again I''d rather not go with bad code. > > Is it possible to force the modal window to not go out of it''s initial > position? > > or > > Can I submit the values of two different forms into the same ''action'' > value page? (In this case a PHP page that will take $_POST variables) > > > ~Digi > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---