Hi, all this time I ran into a problem with form nesting although I know this is not possible in html,I was trying to find an alternative soluation. I have this form consisting of a place''s name,category,address,suburb and state. they all stay in one form and will be saved in the datebase after I press ''save'' button. Now I need to observe the specific area of state,suburb and address and show the map as I type in (from state..address), so I put it in another form. this certainly doesnt work,giving ''$(form) has no properties'' error. anyone has some alternative ideas? if I put them in separate forms,how can I save all of this information in one action? thanks in advance! regards -- 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 -~----------~----~----~----~------~----~------~--~---
You might want to look into the observe_field method, or perhaps an onchange handler, or maybe even the periodically_call_remote method. These are just some alternatives I can think of off the top of my head. Good luck. On 11/29/06, jacquie <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hi, all > > this time I ran into a problem with form nesting although I know this is > not possible in html,I was trying to find an alternative soluation. > > I have this form consisting of a place''s name,category,address,suburb > and state. they all stay in one form and will be saved in the datebase > after I press ''save'' button. Now I need to observe the specific area of > state,suburb and address and show the map as I type in (from > state..address), so I put it in another form. > > this certainly doesnt work,giving ''$(form) has no properties'' error. > anyone has some alternative ideas? if I put them in separate forms,how > can I save all of this information in one action? > > thanks in advance! > > regards > > -- > 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 -~----------~----~----~----~------~----~------~--~---
yeah,instead of nesting another form, I just use observe_field with the :with option. that one works as well. Jimmy Kittiyachavalit wrote:> You might want to look into the observe_field method, or perhaps an > onchange > handler, or maybe even the periodically_call_remote method. These are > just > some alternatives I can think of off the top of my head. > > Good luck.-- 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 -~----------~----~----~----~------~----~------~--~---
Thanks for your hint, Jimmy. =) -- 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 -~----------~----~----~----~------~----~------~--~---