Nevermind -- I figured it out.
On Feb 4, 7:23 pm, SmallPaul
<VerySmallP...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m on Rails 2.0.2, and can''t get Ajax working with
EXTJS.
> I''m trying this from the EXTJS tutorial:
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> 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!
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---