argument in his function, i.e. getFormElement("myform") - if this
function does anything with the value of "form.myform", then he does
need the #'s.
Although I tend to use structkeyexists() for this. In which case there
wouldn't be #'s... structkeyexists(form,arguments[1]) -- although in
CF5 it does have to be a number, since it's an array, not an "object
which sometimes but not always behaves like a structure and an array".
This was a peeve with MX for me -- it actually eliminated some
functionality that had existed before.
> You don't need the #'s inthe isDefined - just the
> FORM.whatever variable.
> I don't have a means to test this right now, but this
> jumped out at me.
> Rau
> At 11:22 AM 8/31/2004, you wrote:
>>Can anyone see something wrong with this, working on CFMX
>>but failing on CF5
>>
>><cfscript>
>>function formValue(formName, defaultValue) {
>>
>> if ( IsDefined("FORM.#ARGUMENTS.formName#") ) {
>> return HTMLEditFormat(FORM["#ARGUMENTS.fo
>> rmName#"]);
>> } else {
>> return
>> HTMLEditFormat(ARGUMENTS.defaultValue);
>> }
>>
>>}
>></cfscript>
>>
>>Error resolving parameter ARGUMENTS.FORMNAME
>>
>>
>>Is this ok on CF5..?
>>
>> IsDefined("FORM.#ARGUMENTS.formName#")
>>
>>What about...
>>
>> FORM["#ARGUMENTS.formName#"]
>>
>>Thanks, just need someone else to look at it as it seems
>>ok to me.
>>
>>Ade
s. isaac dealey 954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

