hallo! momentan steht meine seite so, dass ich gewisse dinge mit link_to_remote auf bedarf nachlade. was mach ich jetzt, wenn javascript deaktiviert ist? kann ich das irgend wie mit render partial lösen? kann ich mit rails prüfen, ob javascript aktiviert/deaktiviert ist und dann dahingehend alle sachen sofort laden? hat da jemand ansätze/strategien/lösungen parat? danke! -- 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 -~----------~----~----~----~------~----~------~--~---
Hi, if you type in english people can understand you, and help you, better. From what I got from the translation service, Claus here has a link_to_remote and he wants it to do some funky stuff regarding if the user has activated / deactived javascript in the browser. Claus, I don''t think you can get Rails to check to see if javascript is enabled upon the request. imo, it''s silly to not have it enabled on. On Fri, May 16, 2008 at 5:41 AM, Claus Stachl < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > hallo! > > momentan steht meine seite so, dass ich gewisse dinge mit link_to_remote > auf bedarf nachlade. > > was mach ich jetzt, wenn javascript deaktiviert ist? > kann ich das irgend wie mit render partial lösen? kann ich mit rails > prüfen, ob javascript aktiviert/deaktiviert ist und dann dahingehend > alle sachen sofort laden? > > hat da jemand ansätze/strategien/lösungen parat? > > danke! > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hi! man thanx i forgot, damn it, to write in english... i m with u in thinking its silly not to turn it on... but the site has to be really really really user centered :-) and there are loads of poeple dont know how to turn it off or on or whatever. if its turned off, they arent able to retrieve my content cause its fetched with ajax. so my question was: is it possible to use a normal link with a render_partial or whatever instead of an ajax link_to_remote... i HAVE to think about a html fallback, but i DONT HAVE that much experience in rails ... however: somebody know any strategy to solve such a problem? thanx. -- 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 -~----------~----~----~----~------~----~------~--~---
Yes, Claus, it''s fairly easy to do. link_to_remote actually has an api of: link_to_remote link_name, options={}, html_options=nil What you''ll need to do is put braces around your existing options (to designate them as a complete hash) and then you can pass :href as an html option. Something like this: link_to_remote ''Claus clause'', {:url=>potentially_dangerous_path, :method=>:get"}, :href=>potentially_dangerous_path If js id turned off in the browser then the onclick is skipped and it will react like an ordinary anchor tag. Good luck! On May 15, 6:25 pm, Claus Stachl <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> hi! man thanx i forgot, damn it, to write in english... > > i m with u in thinking its silly not to turn it on... but the site has > to be really really really user centered :-) > and there are loads of poeple dont know how to turn it off or on or > whatever. if its turned off, they arent able to retrieve my content > cause its fetched with ajax. > > so my question was: > > is it possible to use a normal link with a render_partial or whatever > instead of an ajax link_to_remote... > > i HAVE to think about a html fallback, but i DONT HAVE that much > experience in rails ... > > however: somebody know any strategy to solve such a problem? > > thanx. > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
wow! nice option, thanx. that really brings me forward! -- 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 -~----------~----~----~----~------~----~------~--~---