Hi- I'm trying to implement an auto-complete using Yahoo's autocomplete server, which basically suggests search completions:
http://ff.search.yahoo.com/gossip?output=fxjson&command={your searchterms}' if you want to see the results in your browser, use xml instead: http://ff.search.yahoo.com/gossip?output=xml&command={your searchterms}' So, I can type this into a browser directly and it works just fine, but when i try to use it with observe_field, it fails, i always get a result back of empty string. Am I violating some rule about cross-site ajax calls? Can I have my server generate the observe_field code which calls a 3rd party server for ajax updates, like observe_field? Here's my code: <%=observe_field "query_box", :frequency => 0.5, :url => "http://ff.search.yahoo.com/gossip", :method => "GET", :with => "'output=fxjson&command={' + encodeURIComponent(value) + '}'", #:with => "", :complete => "process(request);" #:complete => "alert(request.responseText);" %> the function gets called just fine, and you can even copy and paste the request url using firebug into a browser URL box and it works just fine, but this always returns an empty string in the Ajax call. So, is this fundamentally not possible, or am I doing something wrong? Thanks for any help. Dino -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.