• 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: takeFormValuesFromRequest problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: takeFormValuesFromRequest problem


  • Subject: Re: takeFormValuesFromRequest problem
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 15 May 2008 06:24:50 +1000

On 14/05/2008, at 9:54 PM, Mike Schrag wrote:

It should. The javascript is only adjusting the display:none or otherwise.
Wait, so you're saying it's display:none and you're making NO structural changes to the form on the server side and it's still being passed a null? I'm calling shenanigans :) That doesn't make sense at all.

Event.addBehavior({
'#iscompany:click' : function(e) {
$('login-cndt', 'login-cndd', 'login-fndt', 'login-fndd', 'login- lndt', 'login-lndd').invoke('toggle');
},
<..>


Er, okay - shenanigans it is :-)
But doesn't the below only change after takeValues. i.e., during appendToResponse?


<webobject name="PageWrapper">
<...>
<webobject name="ContactForm">
<...>
<fieldset>
<dl class="form-details">
<dt><label for="iscompany">As company</label></dt>
<dd><webobject name="IsCompanyCheckbox"/><noscript> <webobject name="RefreshButton"/></noscript></dd>
<webobject name="IsCompany">
<dt id="login-cndt"><label for="companyname">Company Name</ label><em title="This field is required">*</em></dt>
<dd id="login-cndd"><webobject name="CompanyNameValidation"><webobject name="CompanyNameField"/></ webobject></dd>
<dt id="login-fndt" style="display:none;"><label for="firstname">First Name</label><em title="This field is required">*</em></dt>
<dd id="login-fndd" style="display:none;"><webobject name="FirstNameValidation"><webobject name="FirstNameField"/></ webobject></dd>
<dt id="login-lndt" style="display:none;"><label for="lastname">Last Name</label><em title="This field is required">*</ em></dt>
<dd id="login-lndd" style="display:none;"><webobject name="LastNameValidation"><webobject name="LastNameField"/></ webobject></dd>
</webobject>
<webobject name="IsNotCompany">
<dt id="login-cndt" style="display:none;"><label for="companyname">Company Name</label><em title="This field is required">*</em></dt>
<dd id="login-cndd" style="display:none;"><webobject name="CompanyNameValidation"><webobject name="CompanyNameField"/></ webobject></dd>
<dt id="login-fndt"><label for="firstname">First Name</ label><em title="This field is required">*</em></dt>
<dd id="login-fndd"><webobject name="FirstNameValidation"><webobject name="FirstNameField"/></ webobject></dd>
<dt id="login-lndt"><label for="lastname">Last Name</ label><em title="This field is required">*</em></dt>
<dd id="login-lndd"><webobject name="LastNameValidation"><webobject name="LastNameField"/></ webobject></dd>
</webobject>
<...>
</dl>
</fieldset>
<...>
</webobject>
</webobject>


with regards,
--

Lachlan Deck



_______________________________________________
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: takeFormValuesFromRequest problem
      • From: Alexander Spohr <email@hidden>
    • Re: takeFormValuesFromRequest problem
      • From: Alexander Spohr <email@hidden>
References: 
 >takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Andrew Lindesay <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Stephane Guyot <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: securing communications between web server and WO instances
  • Next by Date: Re: Application became sluggish when deployed on 5.4 [Problem found]
  • Previous by thread: Re: takeFormValuesFromRequest problem
  • Next by thread: Re: takeFormValuesFromRequest problem
  • Index(es):
    • Date
    • Thread