>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Selecting default items using ColdFusion 8's AJAX Controls - rss coldfusion posted cf default cfc pm td

 
Registered tutorials: 501
Registered Users: 37417



Rating: 5 out of 1 votes cast


  
Category: Ajax and ColdFusion

Selecting default items using ColdFusion 8's AJAX Controls

Digg this   Post to del.icio.us

Abstract: The article demonstrates how do you set a control to use Ajax and have a default selected item

The first thing I tried was selected=, figuring that would be the easiest solution, but unfortunately it didn't work.

I then tried ajaxOnLoad, thinking maybe I could set the default myself. But ajaxOnLoad() is fired when the page is complete, but before those Ajax calls to populate the drop downs are done.

I then tried onLoad in the cfform tag. This didn't work at all. So I threw the problem over to Todd Sharp, and together we were able to come up with a solution. It ain't pretty, but it works. My hope is that folks can look at this and suggest something nicer. I'm actually a bit surprised this isn't supported out of the box. It seems like I use forms half the time to edit content, not create content, so being able to set defaults is a must.


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 244
Unique Hits: 204


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.6 0.9 2.2 2.7 8.9 10.5
Current 0 0 6 9 9 12
Previous 0 0 3 3 13 15
Feb 13 2 5 0 0 11 14
Feb 12 0 0 2 2 11 13
Feb 11 1 1 0 0 10 14
Feb 10 2 2 3 3 9 10
Feb 9 1 1 0 0 9 9
Feb 8 0 0 5 7 8 8
Feb 7 0 0 3 3 9 10
Feb 6 0 0 0 0 0 0
Highest 3 5 8 10 17 18


Script Execution Time: 0.28689 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2