Thanks for the idea.  I have used similar code in the
past to lookup city
and state automatically when a zipcode was entered...I
was just hoping that
there was an easier/more elegant path to doing this.
Xmlhttprequest didn't
occur to me at all. Maybe I will go that route.

Thanks again!

-----Original Message-----
From: s. isaac dealey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 8:09 PM
To: CF-Talk
Subject: Re: Saving a CFINPUT field

Hey Eron, 

Yeah, I wouldn't expect there to be direct association
between the cfinput
and a component currently, though I could be wrong --
I so rarely use
cfform. I've got an auto-saving textarea in one of my
applications that uses
a hidden iframe to submit its own form -- seemed to be
the most
straightforward solution, although these days I'm sure
a lot of folks would
use an xmlhttprequest instead (via Prototype most
likely).
At any rate, this works just fine for me: 

<iframe style="height:1px; width:1px; border:0px;
visibility:hidden;"
name="autosave"></textarea>
<form action="saveit.cfm" target="autosave"> <textarea
name="yadda"
onchange="this.form.submit();"></textarea>
</form>

Though I also include a submit button in that form in
case javascript is
disabled in the browser -- and then I use javascript
to hide it when the
page loads. :P 


--
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
     ph: 503.236.3691

http://onTap.riaforge.org/blog





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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

Reply via email to