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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/atze%40freeport.de

This email sent to [EMAIL PROTECTED]

---
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to