===================================================================== An iEntry.com Mailing ===================================================================== TheDevWeb - Getting The Value Of AJAX-ified Controls June 20, 2007 http://www.thedevweb.com ********************************************************************* ********************************************************************* Are you running Exchange email security tools from Symantec, McAfee, Trend, or MS-Antigen? Tired of their high (renewal) prices, hard to manage product, and/or lack of features? Upgrade to Ninja's next-generation email security, and spend half your admin time, and half your budget! Download Ninja Email Security - US/CANADA ONLY http://aj.600z.com/aj/29963/0/cc?z=1&b=29960&c=29961 ********************************************************************* ********************************************************************* Getting The Value Of AJAX-ified Controls Raymond Camden | Expert Author I ran into a problem last night trying to use JavaScript to read the value of a rich text field. I had assumed I could use the normal syntax I'd use for a form field: document.forms[0].body.value or document.getElementById('body') But neither of these worked correctly. Turns out the JavaScript API provided in ColdFusion 8 has an API for this: ColdFusion.getElementValue(elementId, formID, attributeName). The formID and attributeName values are optional. Here is a simple example: ********************************************************************* ********************************************************************* You need to make a conference call, and you need it now. Whether you are a Fortune 500 company or a small business just getting on your feet, you need to meet when and where it’s convenient for you. Set Up Your Account For Free And Start Conferencing Today! Try ConferenceCall.com Now! http://aj.600z.com/aj/29877/0/cc?z=1&b=29408&c=29876 ********************************************************************* ********************************************************************* In case you are curious - the value includes all the HTML from the rich text value as you would probably expect. The API can also be used on grids and trees. For grids, you have to provide the column name, and for trees you ask for either the node or the path value. ********************************************************************* ********************************************************************* Call the Domain Experts Today Find the perfect domain name & great tools for growing your business. BuyDomains.com. Business Starts Here. http://aj.600z.com/aj/30050/0/cc?z=1&b=30048&c=30049 ********************************************************************* ********************************************************************* About the Author: Raymond Camden, ray@camdenfamily.com http://ray.camdenfamily.com Raymond Camden is Vice President of Technology for roundpeg, Inc. A long time ColdFusion user, Raymond has worked on numerous ColdFusion books and is the creator of many of the most popular ColdFusion community web sites. He is an Adobe Community Expert, user group manager, and the proud father of three little bundles of joy. ===================================================================== ===================================================================== For ad details and prices... mailto:susan@ientry.com ===================================================================== Signup for free newsletters: http://www.ientry.com/page/newsletters ===================================================================== --- TheDevWeb is an iEntry.com publication --- http://www.iEntry.com iEntry, Inc. 2549 Richmond Rd Second Floor Lexington, KY 40509 ====================================================================