Michael a écrit : > var ajaxSupport = (Ajax.getTransport()) ? true : false; a.k.a. "var ajaxSupport = !!Ajax.getTransport(); > if (ajaxSupport = true) { Ahem. With a single = sign, you'll reassign ajaxSupport, and therefore ensure it's true. Beware! This is why I always put rvalues on the left side: if (3 == myVar) Also, this code is redundant. It could as well be: if (ajaxSupport) > new Element.update('searchengines', ''); > window.setTimeout('Ajax.Update(\'human_page\')', 500); What is this Ajax.Update thing? -- Christophe Porteneuve aka TDD [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
[Rails-spinoffs] Re: scriptaculous, AJAX and search engines
Christophe Porteneuve aka TDD Wed, 04 Oct 2006 05:04:52 -0700
- [Rails-spinoffs] Re: scriptaculous, AJAX and... Christophe Porteneuve aka TDD
- [Rails-spinoffs] Re: scriptaculous, AJA... Michael
- [Rails-spinoffs] Re: scriptaculous,... Thomas Fuchs