Hi, Is it possible to recieve an xml repsonse from my rails app, and then, client side, inject the xml into the page without reloading and have it apply an xslt? Like an AJAX call, but ajax is unavailable to me. My very limited understanding suggests that xslt is only done at run time in safari at least. If I can''t get thsi to work the other option I''ve thought of is to use Javascript to transform the xml in very predetermined ways. This doesn''t appeal to me though. Anyone have any pointers? Cheers Daniel --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes, it is possible. Joshua Daniel ----- wrote:> Hi, > > Is it possible to recieve an xml repsonse from my rails app, and then, > client side, inject the xml into the page without reloading and have it > apply an xslt? Like an AJAX call, but ajax is unavailable to me. > > My very limited understanding suggests that xslt is only done at run > time in > safari at least. > > If I can''t get thsi to work the other option I''ve thought of is to use > Javascript to transform the xml in very predetermined ways. This > doesn''t > appeal to me though. > > Anyone have any pointers? > > Cheers > Daniel-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 4/30/07, Daniel N <has.sox-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Is it possible to recieve an xml repsonse from my rails app, and then, > client side, inject the xml into the page without reloading and have it > apply an xslt? Like an AJAX call, but ajax is unavailable to me. > > My very limited understanding suggests that xslt is only done at run time > in safari at least. > > If I can''t get thsi to work the other option I''ve thought of is to use > Javascript to transform the xml in very predetermined ways. This doesn''t > appeal to me though. > > Anyone have any pointers?I wouldn''t rely on xsl being available in your client''s browsers, unless you control what browser they run (in a corporation perhaps). -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2007-May-01 16:45 UTC
Re: [OT] Inject XML into page and tranform with XSL
Why not server-side? Could you have an after_filter that runs the xml through Xalan or something - we''ve used that successfully (although it was just a vanilla page load - not ajax) 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5/2/07, Frederick Cheung <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Why not server-side? Could you have an after_filter that runs the xml > through Xalan or something - we''ve used that successfully (although it > was just a vanilla page load - not ajax) > > Fred > > --That would be nice if I could do it server side, but then I would just use normal views and not worry about the xml at all. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5/1/07, Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > I wouldn''t rely on xsl being available in your client''s browsers, > unless you control what browser they run (in a corporation perhaps). > > --I had a feeling that would be the case. Oh well. Looks like I''ll have to come at it differently. Thanx --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---