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
Solved

On Change Event

Posted on 2004-03-24
6
169 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Website Test Question 6 126
Redundant SQL Servers Without Clustering 7 119
Problem to go to page 12 102
Public IP Address Amazon Servers 2 57
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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