Hi, I''m trying to update the content of a div with a form. So I did (the form comes from an Ajax.Request): new Ajax.Request(''return_form.php'', { evalScripts:true, parameters:{ foo:\''bar\'' }, onSuccess:function(res){ alert(res.responseText); // Here I can see the form. $(''my_div'').update(res.responseText); alert($(''my_div'').innerHTML); // Here I can''t see the form :( } }); It seems that update() method is parsing out the form or something....Can that be possible? Saludos, Fede. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 6, 2007, at 9:43 AM, xfedex-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > It seems that update() method is parsing out the form or > something....Can that be possible?I''ve observed that as well. Something in Prototype 1.6rc0 fixes it, but I''m not sure what. -- ~akk http://therealadam.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 6, 2007, at 9:43 AM, xfedex-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Hi, > > I''m trying to update the content of a div with a form. So I did > (the form comes from an Ajax.Request): > > new Ajax.Request(''return_form.php'', { > evalScripts:true, > parameters:{ foo:\''bar\'' }, > onSuccess:function(res){ > alert(res.responseText); // Here I can see the form. > $(''my_div'').update(res.responseText); > alert($(''my_div'').innerHTML); // Here I can''t see the form :( > } > }); >I''ve observed that as well. Something in Prototype 1.6rc0 fixes that, but I''m not sure what. -- ~akk http://therealadam.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Adam, I''ve just test it with version 1.6.0_rc0 and nothing seems to change, the form is still missing :( Saludos, Fede. On 11/6/07, Adam Keys <adamkkeys-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Nov 6, 2007, at 9:43 AM, xfedex-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > > It seems that update() method is parsing out the form or > > something....Can that be possible? > > I''ve observed that as well. Something in Prototype 1.6rc0 fixes it, > but I''m not sure what. > > -- > ~akk > http://therealadam.com > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
[SOLVED] The problem was that I had another form, like: <form name="one"> <div id="my_div"></div> </form> The code above don''t work. This code works: <form name="one"> </form> <div id="my_div"></div> Hope it helps, Federico. On 11/6/07, xfedex-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <xfedex-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Adam, > > I''ve just test it with version 1.6.0_rc0 and nothing seems to change, the > form is still missing :( > > > Saludos, > Fede. > > On 11/6/07, Adam Keys <adamkkeys-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > On Nov 6, 2007, at 9:43 AM, xfedex-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > > > > It seems that update() method is parsing out the form or > > > something....Can that be possible? > > > > I''ve observed that as well. Something in Prototype 1.6rc0 fixes it, > > but I''m not sure what. > > > > -- > > ~akk > > http://therealadam.com > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---