RJS and :loading

Hi,

I’m a newbie with Ajax and RJS and have one basic question.

When contents in .rjs are exceuted in a Ajax sequence?

.rjs seems a kind of alternate for .rhtml view file, so I guess they are
in action after the controller action completed.
The contents of .rjs file are :complete scenario, right?

if so, can’t I write some on :loading action in .rjs?
like disabling submit-button.

TIA,


Hiroshi T. [email protected]

On 12/27/05, Hiroshi T. [email protected] wrote:

if so, can’t I write some on :loading action in .rjs?
like disabling submit-button.

TIA,

Things like disabling the submit button should be handled on the
originating webpage with the :loading callback of link_to_remote or
form_remote_tag. You are correct, the RJS is executed in the
:complete callback.


rick
http://techno-weenie.net