Posted At : Nov 03, 2010 15:45 PM | Posted By : Ed Tabara
Related Categories: Other, JavaScript, jQuery

Based on the title "Must-Have Cheat Sheets for Web Designers"it's meant for Web Designers, but Web Developers will find interesting things too....

| 5430 Views | 6% / 0% Popularity

Posted At : Apr 23, 2010 17:15 PM | Posted By : Ed Tabara
Related Categories: ColdFusion, AJAX, JavaScript, jQuery

Yesterday a had to create a script where some cells in a html table would change their values based on changed values on the server. So, all it took is to set the timer and at given period of times to call a server side script and gather the info and then display it in right places. Below is a simplified version of this script. It will call a server script each secod and display the value in a DIV. The first script is the one that you will load in the browser: Current Time is: <div align="center" id="clockID"></div><script src="js/jquery.js"></script><script language="JavaScript"> $(document).ready(function() { var refreshId = setInterval(function() { $('#clockID').load('clock.cfm?rnd='+ Math.random()); }, 1000); }); </script> And the server-side script is:#TimeFormat(Now(), "HH:mm:ss")#...

| 10041 Views | 12% / 0% Popularity

Posted At : Dec 04, 2009 14:04 PM | Posted By : Ed Tabara
Related Categories: ColdFusion, AJAX, JavaScript, jQuery

Given Have a form with 3 fields: Zip(text field), City(text field), State(dropdown field).Problem description The user fills in the Zip. Then, when starting to fill the City, AutoComplete appear (from those that have filled Zip). When/If one is selected the Stateis filled automatically. Solution Nowadays there are many solutions for AJAX AutoComplete but i choosed the jQuery plugin from It seem to work very well and on the site are given details on how to use it. So after incuding the library with creating the form:Zip:? ?City:? ?State:? selected>selected>#stateName# and ading the JS: i started to test it in order to move farther. And of course issues started. First problem was that the value from the Zip field was not passed to index.cfm?action=buyers.getCity. Instead of the value just entered was passed the one that was in the field at the start, so it wasn't exactly what i needed. Maybe there exist an easier way, i don't know, but after quite long play...

| 6938 Views | 8% / 0% Popularity