Forum: Ruby on Rails Disabling a form ...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bd0ecd69dba2aab1a0261ee46e090139?d=identicon&s=25 Nicholas Wieland (Guest)
on 2007-03-08 15:09
(Received via mailing list)
This is what I have:

<% remote_form_for :message,
   :url => { :action => 'add_followup' },
   :loading => "$('followup_form').disable();", :complete => "$
('followup_form').enable;",
   :html => { :id => 'followup_form' } do |form| %>

   .......

<% end %>

It works fine on FF, but not on Safari.
Where's the mistake here ?

   ngw
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2007-03-08 15:19
(Received via mailing list)
Nicholas Wieland wrote:

> ('followup_form').enable;",

uh, enable() <-- ?

--
  Phlip
  http://c2.com/cgi/wiki?ZeekLand  <-- NOT a blog!!
Bd0ecd69dba2aab1a0261ee46e090139?d=identicon&s=25 Nicholas Wieland (Guest)
on 2007-03-08 15:34
(Received via mailing list)
Il giorno 08/mar/07, alle ore 15:18, Phlip ha scritto:

>
> Nicholas Wieland wrote:
>
>> ('followup_form').enable;",
>
> uh, enable() <-- ?

No ...
The problem is with disable(), it doesn't disable anything ...

   ngw
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2007-03-08 16:14
(Received via mailing list)
Nicholas Wieland wrote:

> The problem is with disable(), it doesn't disable anything ...

Try viewing your page, using View Source, copy out the generated
JavaScript, and pasting it here.

--
  Phlip
  http://c2.com/cgi/wiki?ZeekLand  <-- NOT a blog!!
Bd0ecd69dba2aab1a0261ee46e090139?d=identicon&s=25 Nicholas Wieland (Guest)
on 2007-03-08 17:00
(Received via mailing list)
Il giorno 08/mar/07, alle ore 16:09, Phlip ha scritto:

>
> Nicholas Wieland wrote:
>
>> The problem is with disable(), it doesn't disable anything ...
>
> Try viewing your page, using View Source, copy out the generated
> JavaScript, and pasting it here.

<form onsubmit="new Ajax.Request('/issue/add_followup',
{asynchronous:true, evalScripts:true, onComplete:function(request){$
('followup_form').enable();}, onLoading:function(request){$
('followup_form').disable();}, parameters:Form.serialize(this)});
return false;" method="post" id="followup_form" action="/issue/
add_followup">


........


</form>


TIA,
   ngw
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2007-03-08 17:18
(Received via mailing list)
Nicholas Wieland wrote:
>
> $('followup_form').enable();

I never had any luck with that. Try Form.Enable("followup_form") -
Google for it first!

--
  Phlip
  http://c2.com/cgi/wiki?ZeekLand  <-- NOT a blog!!
This topic is locked and can not be replied to.