• 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: Forms and page refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forms and page refresh


  • Subject: Re: Forms and page refresh
  • From: Mike Schrag <email@hidden>
  • Date: Mon, 7 Nov 2005 13:07:07 -0500

You can also use ERXJSSubmitFunction in Wonder and set the onClick action on your link to call that function.

ms

On Nov 7, 2005, at 12:26 PM, David LeBer wrote:

On 7-Nov-05, at 12:17 PM, David Griffith wrote:

Hi all,

Am I right to assume that if I have a new EO (which has been registered with the EC but has not been 'saved') and the user enters data via the form on the page and then clicks, for example, a hyperlink that refreshes the page, that the form values will be lost?

i.e. the form is not explicitly being 'submitted' and the page is being refreshed by a method of a subcomponent that returns 'null' to a WOComonent return type. The user clicks a link which is in a subcomponent, that subcomponent returns 'null' and the page refreshes but any data that had been entered disappears.


Yes. This is expected HTML behaviour. Hyperlinks do not submit forms.

If you own that subcomponent you can modify it, adding a binding that allows you to pass in some JS to perform the submission. Or replace the WOHyperlink with a WOImageButton (if appropriate).

--
;david

--
David LeBer
"I am codeferous!"
Codeferous Software
site:   http://www.codeferous.com
blog: http://david.codeferous.com




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.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: 
 >Forms and page refresh (From: David Griffith <email@hidden>)
 >Re: Forms and page refresh (From: David LeBer <email@hidden>)

  • Prev by Date: Re: whywebobjects.com
  • Next by Date: Custom class with D2W
  • Previous by thread: Re: Forms and page refresh
  • Next by thread: whywebobjects.com
  • Index(es):
    • Date
    • Thread