Solved

On Change Event

Posted on 2004-03-24
6
171 Views
Last Modified: 2013-12-24
I have a form displaying several fields from a CFQuery.  The user needs the ability to edit the field.  Once the user has completed their edits and clicked outside the field text-box, I want the record to be updated on the database...  is there a OnChange event that can do this in ColdFusion?  If so do you have an example???
0
Comment
Question by:jdoub
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 25 total points
ID: 10673232
This is a trciky one, and I dont think you would want to do it this way.
Anyway, you could do

<input type="text" name="blah" onBlur="document.yourFormName.submit();">
0
 
LVL 17

Expert Comment

by:anandkp
ID: 10675484
I wld not recommend this logic

Its better u use a submit button for this - so user knows that if incase he mistypes something he can always go back to it & edit it - without having to bother abt it being submitted "onBlur".

Just A Thought !

but if u want to go ahead with it - u already have the answere above.
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 10675586
Thats exactly what I said, and I quote "and I dont think you would want to do it this way"
0
 

Assisted Solution

by:tnunamak
tnunamak earned 25 total points
ID: 10934119
OnChange is a JAVASCRIPT event, which is client side.  CF is server side.  The only way you'll be able to use OnChange is to force a submit to the web server (either a hidden frame/ popup window or just a plain form submission).  The browser paradigmn is well established and users are trained to look for buttons to click on.  I would put a submit button on the page and use the browser like most users are used to using it.
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
What You Need to Know when Searching for a Webhost Provider
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question