# Ajax with EXTJS

**URL:** <https://www.ruby-forum.com/t/ajax-with-extjs/128099>\
**Category:** Rails\
**Created:** [February 5, 2008, 1:23am UTC](https://www.ruby-forum.com/t/ajax-with-extjs/128099 "2008-02-05T01:23:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmallPaul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@SmallPaul](https://www.ruby-forum.com/u/SmallPaul)\
**Post date:** [February 5, 2008, 1:23am UTC](https://www.ruby-forum.com/t/ajax-with-extjs/128099/1 "2008-02-05T01:23:41Z")

</div>

I’m on Rails 2.0.2, and can’t get Ajax working with EXTJS.  
I’m trying this from the EXTJS tutorial:

```auto
Ext.onReady(function(){
  Ext.get('okButton').on('click', function(){
    var msg = Ext.get('msg');
    msg.load({
      url: '/users/ExtStart_ajax',
      params: 'name=' + Ext.get('name').dom.value,
      text: 'Updating...'
    });
    msg.show();
  });
});

```

I suspect that the URL I am using is not correct because when I ckick  
the ‘okButton’, I simply hang with the spinner going forever. But I  
do have a function called ‘ExtStart\_ajax’ in my users\_controller.rb.

Any help greatly appreciated!

---

<div class="post-metadata">

**Author:** ![SmallPaul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@SmallPaul](https://www.ruby-forum.com/u/SmallPaul)\
**Post date:** [February 7, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/ajax-with-extjs/128099/2 "2008-02-07T20:47:13Z")

</div>

Nevermind – I figured it out.
