• 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: Alexander Spohr <email@hidden>
  • Date: Wed, 14 May 2008 23:01:32 +0200

You did not deliver the .wod

What exactly is IsCompanyCheckbox doing? Does it set the condition for IsCompany/IsNotCompany (if it is a condition)?
If yes, this will kill your cycle while the tree is rendered/comes back and the user checks the box in between.


Do not use WOConditionals at that place. What for anyway? You duplicate your html without need.
Let one block stand, erase the other - and your conditionals! Your javascript and the checkbox should just switch visibility.


	atze


Am 14.05.2008 um 22:24 schrieb Lachlan Deck:

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

--- Alexander Spohr Freeport & Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



_______________________________________________
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: 
 >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>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Application became sluggish when deployed on 5.4 [Problem found]
  • Next by Date: Re: Not going to WOWODC this year?
  • Previous by thread: Re: takeFormValuesFromRequest problem
  • Next by thread: Re: takeFormValuesFromRequest problem
  • Index(es):
    • Date
    • Thread