On 24 Jun 2009, at 15:16, Naija Guy wrote:
> > Yes, it's in a script tag that's up in my <head> node. So just now I > added this line to my routes.rb wondering if it's related to the > issue: > > map.connect 'lookup', :controller => 'home', :action => 'lookup' > > Both before and after adding this line, my Javascript alert box pops > up > to let me know it entered the Javascript function that calls my > remote_function, but then my debug statement in the controller action > never spits out anything to the server console! > You should enclose your code in a CDATA section ( http://stackoverflow.com/questions/66837/javascript-cdata-tags ). Fred > Thanks for any help... > > > > Gianluca Tessarolo wrote: >> Hi, >> >> I'm using rails 2.3.2 with jrails/jquery and remote_function works. >> >> Do you have enclosed the remote_function call with <script> tag ? >> >> Try this... >> >> <script language="javascript"> >> <%= remote_function(:update => "definition_box", :url => { :action >> => >> :lookup } ) %> >> </script> >> >> Hope this helps ! > > -- > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

