Posted by: Laura
Today, Ben Forta posted an example to "Programatically change Flash Form calendar selectable ranges". At first sight, this is a nice example of using Actionscript to manipulate form controls. Reading the code a little more carefully, you can find a little gem: the word "new" is used to create a new date object. Those that tried creating new objects within ActionScript code have found that new, import, delete, createChild, loadmovie, duplicateMovieClip, AttachMovie, registerclass, createTextField, __proto__ cannot be used and writing any of those keywords would throw an "Illegal usage of ActionScript" error.
However, it seems that there are no restrictions imposed if we put a piece of code with illegal keywords in a cfcalendar. I do not know what this means, and why the cfcalendar tag does not have the same restrictions that the other tags have. If we use this now, can we be sure that the calendar will not be limited in the future to match the other tags?
I hope that the opposite happens instead. :)
Category: CFForm | ColdFusion |