This can get tricky because the user can fill out the form without using the
mouse by tabbing with the keyboard. So you'd need onKeyPress handlers for
each field as well.

I suppose I'd be careful with this, but nothing is stopping you from doing
it. Most people are used to having things "save" when they click the submit
button, so consider that this autosave approach might confuse some people.

On 10/29/07, J W <[EMAIL PROTECTED]> wrote:
>
> Ok... Hopefully I can explain this a little better.
>
> In simple terms... Say I have a mailing list signup form with different
> news
> letters.
>
> =============
>
> {{You have been added to  [mailing list X] using [email address select]}}
>
> [ ] Mailing List A [email address select]
> [ ] Mailing List B [email address select]
> [ ] Mailing List C [email address select]
>
> ==============
>
> Legend:
> [ ] Check Box
> [email address] Select box
> {{Ajax updated div inner html}}
>
> The wanted action:
> As a user clicks the checkbox to a particular mailing list, I call a CFC
> and
> add that person to that particular mailing list via an insert query and
> update the HTML above to let the user know they have been subscribed. OR
> if
> the checkbox is already checked, and they click on it, unsubscribe them in
> the same manor.
>
> Did I make this clearer or did I make it more complex???
>
> Jeff
>
> On 10/29/07, Cutter (CFRelated) <[EMAIL PROTECTED]> wrote:
> >
> > Jeff,
> >
> > I think we might need more clarification here. "...update form elements
> > as a user makes changes...." has a few different meanings. If field
> > elements (say city and state) are bound to other elements (like a zip
> > field), then you might use Ajax to update the city and state with info
> > brought back from a query to the server (this zip = this city and
> > state), whereas if you were just applying proper formatting to a field's
> > contents (say a U.S. Phone Number field), you aren't really using Ajax,
> > since you aren't making a query of the server for information based upon
> > what you've entered.
> >
> > I would suggest reviewing some of the popular JS libraries for either (I
> > prefer JQuery myself). If you are on CF8 you can take advantage of the
> > new built in Ajax components and methods (see the livedocs for detailed
> > implementation).
> >
> > Steve "Cutter" Blades
> > Adobe Certified Professional
> > Advanced Macromedia ColdFusion MX 7 Developer
> > _____________________________
> > http://blog.cutterscrossing.com
> >
> > J W wrote:
> > > Can anyone point me in the right direction.
> > >
> > > I would like to update form elements as a user makes changes. So
> instead
> > of
> > > hitting a submit button, I'd like each one updated via AJAX through a
> > CFC.
> > > Are there any downsides to doing this? Are there any tutorials or docs
> > to
> > > help me accomplish this? I have been coming up short in my search or
> at
> > > least no understanding enough about it to know that it would help me..
> > :)
> > >
> > > Muchly Appreciated.
> > >
> > > Jeff
> > >
> > >
> > >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292269
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to