I have a page in which I have a text field and next to that a button , when I click on the button it should open window [using Redbox] so that I can type it in the window and when I give submit in the child window it shuold close the child window automatically and the inserted value should be added to the textbox in the parent window. Please help -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This is javascript question. Imagine your textbox have id ''blabla''. In your child window, your submit button must invoke this javascript question: top.opener.window.document.getElementById(''blabla'').value the_new_value; window.close(); On Jul 12, 5:03 pm, Unni Krishnan <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I have a page in which I have a text field and next to that a button , > when I click on the button it should open window [using Redbox] so that > I can type it in the window and when I give submit in the child window > it shuold close the child window automatically and the inserted value > should be added to the textbox in the parent window. > > Please help > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Unni Krishnan
2007-Jul-12 10:53 UTC
Re: Getting field value from child window [Using Redbox]
No, I want to use redbox, bcoz when entering data in the field of the child window, I dont want to allow users to enter datas in the parent window. How to do that -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jul 12, 5:53 pm, Unni Krishnan <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> No, I want to use redbox, bcoz when entering data in the field of the > child window, I dont want to allow users to enter datas in the parent > window. > > How to do that >then you can just use window.document.getElementById(''blabla'').value the_new_value; I don''t know the implementation of redbox. I assume redbox make "modal window" not using child window. So redbox page is same as in parent page. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---