• 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: David LeBer <email@hidden>
  • Date: Mon, 7 Nov 2005 12:26:28 -0500

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




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Forms and page refresh
      • From: Mike Schrag <email@hidden>
References: 
 >Forms and page refresh (From: David Griffith <email@hidden>)

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