# Prototype ajax request

**URL:** <https://www.ruby-forum.com/t/prototype-ajax-request/121652>\
**Category:** Rails\
**Created:** [November 29, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/prototype-ajax-request/121652 "2007-11-29T17:39:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joan2kus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9fc29f/32.png) [@joan2kus](https://www.ruby-forum.com/u/joan2kus)\
**Post date:** [November 29, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/prototype-ajax-request/121652/1 "2007-11-29T17:39:46Z")

</div>

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?
