The parameters being submitted appear valid, when I use form_remote_tag the
request is submitted properly as far as I can tell.
One thing I have found is if I remove the | f | from my <% remote_form_for
do | f | %> it submits a ajax request. Including | f | in either
remote_form_for or form_remote_tag causes a standard page submit non ajax.
Additionally if I dont'' have | f | and try to use text_field_tag like
such:
<% text_field_tag "profiles[first_name]" %> instead of just
<%
text_field_tag :first_name %> this also causes the request to be submitted
as a non-ajax request.
I am currently having some issues with the Javascript after the submit but
I''m sure it''s me I haven''t gotten to look into that
problem too much yet.
The remote_form_for syntax does a standard page submit.
On Tue, Oct 14, 2008 at 8:24 AM, Mike Mangino <mmangino at
elevatedrails.com>wrote:
>
> On Oct 14, 2008, at 12:56 AM, Ken Schroeder wrote:
>
> Got two issues trying to get AJAX requests to work here still.
I''m able
>> to get Mock Ajax or form_remote_tag to work mostly how I want with the
>> exception of I''m getting a filter chain halt because of
before_filter
>> ensure_application_is_installed_by_facebook_user in applicaiton.rb.
How
>> are people working around that? Also I''m still having trouble
getting
>> remote_form_for to work same as form_remote_tag with similar syntaxa?
<%
>> remote_form_for participants.profiles.first,
>> :url=>profiles_url(:canvas=>false) do |f| %>
>>
>
> Don''t you get a valid param list on your ajax requests? I know I
used to.
>
> I''ve had some problems with remote_form_for due to a Facebook bug.
They
> kill some of the [ and ] in the params. I opened a bug, but I
don''t think
> they have fixed it.
>
> Is this the problem you are seeing as well?
>
> Mike
>
>
>
>>
>> Any ideas appreciated thanks --ken
>>
>> _______________________________________________
>> Facebooker-talk mailing list
>> Facebooker-talk at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>>
>
> --
> Mike Mangino
> http://www.elevatedrails.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/facebooker-talk/attachments/20081014/eaa01d41/attachment-0001.html>