• 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: Hyperlink and saveChanges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hyperlink and saveChanges


  • Subject: Re: Hyperlink and saveChanges
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 9 Oct 2008 11:32:17 -0700


On Oct 9, 2008, at 11:22 AM, David Holt wrote:

I don't understand the behaviour of my application. I have a form on a page whose values I save with a submit button.

I would also like to implement saveChanges() when the user navigates to a different part of the form (clicks a link) but calling the exact same saveChanges() code from a WOHyperlink has no effect. The navigation links are outside the form.

Can I make this work?

Clicking a link won't submit the form contents, is that what you are seeing? My inclination would be to use Ajax to do this. Otherwise you will have to get tricky with hidden fields and make the link onClick JavaScript to set the hidden field to indicate which link was clicked and then "click" the submit button from JavaScript. There are probably other ways...


Chuck


-- Chuck Hill Senior Consultant / VP Development

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: This email sent to email@hidden
References: 
 >Hyperlink and saveChanges (From: David Holt <email@hidden>)

  • Prev by Date: Re: Hyperlink and saveChanges
  • Next by Date: Re: Hyperlink and saveChanges
  • Previous by thread: Re: Hyperlink and saveChanges
  • Next by thread: Re: Hyperlink and saveChanges
  • Index(es):
    • Date
    • Thread