Also wondering what the situation with a parent display set to none would
be?
<div style="display: none;">
<input... />
</div>
I wonder if that works the same way?
Adrian
> -----Original Message-----
> From: Dawson, Michael [mailto:[email protected]]
> Sent: 11 February 2009 17:55
> To: cf-talk
> Subject: RE: Form vars when display set to none
>
>
> We are on the same platform. It may have been a slightly different
> situation, but I seem to recall that under some circumstance, the
> fields
> were not passed, either based on CSS or JS.
>
> I'm glad it's working for you, tho.
>
> Thanks,
> Mike
>
> -----Original Message-----
> From: Adrian Lynch [mailto:[email protected]]
> Sent: Wednesday, February 11, 2009 11:49 AM
> To: cf-talk
> Subject: RE: Form vars when display set to none
>
>
> Well yeah, but not on all browsers. Should have said I tested on the
> following:
>
> FF 3.0.6
> IE 7.0.5
> Chrome 0.2.1
>
> On Win XP, these all pass the value.
>
> Does anyone know a browser/OS combo that doesn't?
>
> If anyone's interested in checking, submitting this form will say for
> sure:
>
> <cfdump var="#FORM#">
>
> <form method="post">
> <input type="text" name="field-1" style="display: none;" />
> <input type="text" name="field-2" />
> <input type="submit" name="submit" value="Submit" /> </form>
>
> Adrian
>
> > -----Original Message-----
> > From: Dawson, Michael [mailto:[email protected]]
> > Sent: 11 February 2009 17:33
> > To: cf-talk
> > Subject: RE: Form vars when display set to none
> >
> >
> > Are you positive about that?
> >
> > We worked on a project that had display:none and, from what I
> > remember, those fields were not submitted.
> >
> > This is easy enough for the OP to test, however. (CFDUMP and/or
> > Firebug)
> >
> > Thanks,
> > Mike
> >
> > -----Original Message-----
> > From: Rick Root [mailto:[email protected]]
> > Sent: Wednesday, February 11, 2009 10:12 AM
> > To: cf-talk
> > Subject: Re: Form vars when display set to none
> >
> >
> > CFFormProtect uses this method of putting in a hidden form field and
> > requiring that it be empty as part of it's anti-spamming tests.
> >
> > the CSS display none will NOT affect whether or not the field is
> > submitted, it should always be there.
> >
> > Rick
> >
> >
> > On Wed, Feb 11, 2009 at 10:55 AM, Adrian Lynch
> > <[email protected]> wrote:
> > >
> > > Just for peace of mind, if I have a form field that has it's
> display
>
> > > set to none...
> > >
> > > <cfdump var="#FORM#">
> > >
> > > <form action="test.cfm" method="post">
> > > <input type="text" name="field-1" style="display: none;" />
> > > <input type="text" name="field-2" />
> > > <input type="submit" name="submit" value="Submit" /> </form>
> > >
> > > ... will it ever be the case that field-1 ISN'T sent in the post?
> > >
> > > The reason I ask is that I know some browsers don't send disabled
> > form
> >
> > > fields and others do, just wondering if this is the same for
> display:
> > none.
> > >
> > > Thanks.
> > >
> > > Adrian
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319190
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4