• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Form update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Form update


  • Subject: Re: Form update
  • From: Mark Morris <email@hidden>
  • Date: Tue, 20 Feb 2007 14:22:04 -0600

Hi John,

This is probably understood, but just in case, if you choose Chuck's method #3 below, you might need some way to differentiate between the user checking the checkbox and the user pressing the submit button, since both will submit the form. One way that comes to mind to do this would be a hidden field that is cleared in your body's onLoad method and set in the checkbox's onClick before the submit.

Hmmm, thinking more about this, does form.submit() send the submit button's value (like "enter" being pressed in a text field)? If not, you might could tie one action to the form and another to the button. Something to try.... ;-)

Regards,
Mark

On Feb 20, 2007, at 11:35 AM, Chuck Hill wrote:

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@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

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@hidden)
Help/Unsubscribe/Update your Subscription:
40onpointsoftware.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Form update (From: John Shepardson <email@hidden>)
 >Re: Form update (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Form update
  • Next by Date: EOModeler, Project Builder won't launch on Windows XP
  • Previous by thread: Re: Form update
  • Next by thread: Re: Form update
  • Index(es):
    • Date
    • Thread