Programming, Technology, Web Development, Whatever
Posts tagged cfc
CRUD problem in IE6 with cfajaxproxy
Aug 9th
When using the CFC generator in Coldfusion Builder to create a DAO for a database table, Coldfusion will create four functions
within this file, namely create, read, update, and delete. When creating a Javascript object out of the CFC using cfajaxproxy, Coldfusion will populate your document with Javascript that contains the names of these functions in the document. This will break IE6.
Typically this wouldn’t be a problem, however the trouble arises when the document is populated with the last function: delete. Whereas Coldfusion sees delete as a function within the CFC, however delete in Javascript is a reserved word to deallocate dynamically allocated memory. All other browsers (including IE7+) recognizes that delete is indeed a function of your CFC, however IE6 simply recognizes it as a reserved word, and discontinues parsing the pages Javascript, resulting in Object Expected errors when other Javascript code is executed. To get around this, you simply need to rename the delete function in the CFC to something different.
Attached Files:
Introduction to cfajaxproxy
Jul 19th
I’ve been using Coldfusion for quite some time now, but only recently have I taken advantage of what seems to be a relatively unknown or at least poorly publicized feature called cfajaxproxy, which allows you to create a Javascript object from a CFC, and dynamically interact with Coldfusion using Javascript functions. More >