John,

There are three ways you can do this:

1. JavaScript that you write that modifies the page on the fly

2. JavaScript that someone else wrote - the Ajax framework in Project Wonder. That framework is an amazing piece of work and really makes using Ajax with WO very simple - if you understand WO. If you are just learning, it might be more head pain than you want.

3. Use a tiny bit of JavaScript to get the form to submit and re-draw with the pop disabled. This is fairly easy, but means a round trip to the server that the user can see.

For #3:

1. Mark the form as multipleSubmit=true;
2. Add a specific action method for your Submit button and bind it to the action of that button
3. Add this binding to the checkbox:
onClick="this.form.submit():"

I am assuming that you already have the code and template to handle the box being in checked and unchecked states.


Chuck




On Feb 19, 2007, at 9:43 PM, John Shepardson wrote:

Hi, I'm a new member, first post. I know this is an easy question, but I
can't find the answer elsewhere.

I have a form with a submit button, a checkbox, and a popup list. I want the popup list to become disabled if the checkbox is checked. Everything works fine, but when the user checks the checkbox, I can't get get the form to redraw with the popuplist disabled. I can set the popuplist to disabled, but
it is not refreshed, so it can still be selected. Thanks for any help,

John


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to