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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to