<script type="text/javascript"> function onChangeURL() { // include prototype.js var bounds_url = "http://www.someurl.com" new Ajax.Request(bounds_url, { method:''get'', onSuccess: function(request) { alert("Success! \n\n" ); }, onFailure: function(){ alert(''Something went wrong...'') } }); } </script> URL: <%= f.text_field :url, {:id=>''url'', :size => 30} %> <%= observe_field :url, :function => ''onChangeURL()'' %> This is simplified version of my code. The onchangeurl function was called when the url text field content is changed. My problem is that I can''t the onSuccess/onFailure functions within the Ajax.Request executed, not even throw me an exception. Looks like they don''t exist at all. Can anybody tell what''s wrong going on? -- 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 -~----------~----~----~----~------~----~------~--~---