Hi Scott,
Scott Taylor wrote:
>I would like to build a form which uses ajax on the first request, but on a
>subsequent request uses the regular form_tag.
Sounds like you were on the right track. My recommendation would have been
to put your initial form inside a <div id = "unique_name">,
create a partial
named _new_form.rhtml with your second form wrapped in the same <div id =
"unique_name">, and in your RJS template do a page.replace
''unique_name''
:partial => ''new_form''
Without knowing what error''s being thrown there''s not much
more we can do to
help. A blank page means the Ajax failed. If your doing the above and
it''s
not working, your best bet is to get Firefox and Firebug fired up and see
what''s going on. Firebug will give you the error in the console tab in
the
response to the post. What I do as I debug this stuff is copy that into an
errorpage.html file that I keep open in my editor and in another browser.
hth,
Bill