Enabling/disabling fields in async liveCallbacks?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Enabling/disabling fields in async liveCallbacks?

Rick Flower
It dawned on me that it might be nice to disable some select fields I've
got on a form until certain other things have occurred on the form (to
enforce a sequence if you will).. Anyway, with the initial rendering of
the form, I sent in the disabled: true message.. This worked fine and
the select field was disabled (greyed-out)..

I then went into the SeasideAsync liveCallback I've got and in the place
where this list is rendered over again with the populated contents, I
sent in the "disabled: false" message.. However, it still doesn't get
enabled.. Perhaps I'm going beyond what was meant?  I don't get any
errors or anything -- just a behavior I wasn't expecting..

If this isn't possible, no biggie..  Just thought I'd try it out..


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Enabling/disabling fields in async liveCallbacks?

Michel Bany-3
Rick Flower a écrit :

> It dawned on me that it might be nice to disable some select fields
> I've got on a form until certain other things have occurred on the
> form (to enforce a sequence if you will).. Anyway, with the initial
> rendering of the form, I sent in the disabled: true message.. This
> worked fine and the select field was disabled (greyed-out)..
> I then went into the SeasideAsync liveCallback I've got and in the
> place where this list is rendered over again with the populated
> contents, I sent in the "disabled: false" message.. However, it still
> doesn't get enabled.. Perhaps I'm going beyond what was meant?  I
> don't get any errors or anything -- just a behavior I wasn't expecting..
>
> If this isn't possible, no biggie..  Just thought I'd try it out..
Hi Rick,
I think this should be possible. I would try enclosing the list in a div
or span making sure the whole div or span is live updated, not the list.
HTH
Michel.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside