> Well sense you have all been so helpful today how about someone telling
> me how to have javascript select the entered text onblur?

function submitValue(myValue) { do stuff... }

<input type="text" onblur="submitValue(this.value);">

That may or may not work in certain older versions of netscape or other
browsers, so you would use submitValue(document.myform.myinputfield.value);
and just make sure your form has a name attribute to reference there...


Isaac Dealey
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

> -----Original Message-----
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 1:46 PM
> To: CF-Talk
> Subject: RE: Function?


>> Yes, you are right.  I thought that she had wanted to do javascript,
>> then serverside validation, and if something is wrong, bring them back

>> to the input page with prefilled fields and alert them.  If nothing is

>> wrong, still bring them back to the input page, except this time
>> instead of an alert message, display a submit button for them to
>> click.

>> heh i'm sleepy i guess

> Actually, dependant upon the application, I could see a situation where
> it might be beneficial to take the contents of a single input field and
> pass or submit them to an action page in the onblur() event of the
> field, thus making allmost all visible content always current, and
> eliminating the need for a submit or save button.

> The only drawbacks are that it makes "undo" a little unwieldy and has
> the potential to drastically increase bandwidth and server resource
> usage as a result of sending dozens if not hundreds or thousands of page
> requests for such a tiny amount of data.

> But the idea is interresting and possibly viable, given circumstance.


> Isaac Dealey
> Certified Advanced ColdFusion 5 Developer

> www.turnkey.to
> 954-776-0046

> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to