?
Solved

On Change Event

Posted on 2004-03-24
6
Medium Priority
?
173 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 100 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 100 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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…
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

752 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