An newbie question. I have a "script" tag included in the response of an ajax call (from a link_to_remote) But this script tag is in the response(seen in firebug) but not on the webpage. It is stripped by something. I try to use the jquery auto complete plugin but I''m having hard time to set this up. any helps will be appreciated. Rémi -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 25, 1:26 am, Rémi Gagnon <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> An newbie question. I have a "script" tag included in the response of > an ajax call (from a link_to_remote) But this script tag is in the > response(seen in firebug) but not on the webpage. It is stripped by > something. >I don;t know jquery, but prototype by default strips script tags from responses. You might want to poke around the jquery api and see if they do anything similar. Fred> I try to use the jquery auto complete plugin but I''m having hard time to > set this up. > > any helps will be appreciated. > > Rémi > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you Frederick, That means I can''t have an other ajax call within an ajax response. Its odd. In my case I have ''tabs'' and the action of these tabs are in ajax, within these tabs I have an auto complete field. How can I make this work? Thank you Rémi Frederick Cheung wrote:> I don;t know jquery, but prototype by default strips script tags from > responses. You might want to poke around the jquery api and see if > they do anything similar. > > Fred-- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 25 Feb 2009, at 11:20, Rémi Gagnon wrote:> > Thank you Frederick, > > That means I can''t have an other ajax call within an ajax response.With prototype it''s just the default. You don''t have to have it that way (don''t know about jQuery)> Its > odd. In my case I have ''tabs'' and the action of these tabs are in > ajax, > within these tabs I have an auto complete field. How can I make this > work? >Well a lot of folks shy away from script tags altogether these days, and just attach event handlers to stuff (eg from the callbacks of the thing that caused the partial to be inserted that way). I got the impression jQuery in particular leant quite heavily that way. Fred> Thank you > > Rémi > > > Frederick Cheung wrote: >> I don;t know jquery, but prototype by default strips script tags from >> responses. You might want to poke around the jquery api and see if >> they do anything similar. >> >> Fred > > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---