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?
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.
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.