The following will throw an error, but it SHOULD NOT! var myAlert = mx.controls.Alert.show("Add New Application?", "CONFIRM", mx.controls.Alert.YES | mx.controls.Alert.NO, this, addHandler); Seems ColdFusion does not like the 'New' in "Add New Application" and throws an error! Ridiculous! I wasted over an hour trying to figure this error out! Hope this helps the rest of you.
sarge, i just went thru the same thing w/the word "delete" in tooltips. the buttons, etc. also had the word "delete" in their labels/values but threw no error. change the word "delete" to "remove" and works fine. <cfsavecontent variable="deleteMessages"> alert("deleting messages"); </cfsavecontent> <cfinput type="Button" name="deleteEmailButton" value="delete mail" visible="Yes" enabled="Yes" tooltip="delete email" onclick="#deleteMessages#">
Just tried with single quotes and still get the same message, "Illegal use of Actionscript, blah, blah". Looks like a valid bug. I've also run across this error with the word 'delete' in some instances, but can't recall exactly which.
I have also noticed similar things, but can not recall any specifics at the moment. The problems are usualy around statements that could cause errors in Action Script in Flash. Even though from a Coldfusion point of view they are fine.
Don't see what you're looking for? Try a search.
|