Try taking out the eval in this case.......
From: "Ron Mast" <[EMAIL PROTECTED]>
Date: 2002/11/27 Wed AM 10:11:45 CST
To: <[EMAIL PROTECTED]>
Subject: Concatination question...FusionScript related...sorry

Hi All,
I'm having trouble with something very simple...:(
Ok...I have created dynamic form variables like so 'form.item_Dynamic'.

I get the output I want when I do the following:
        <cf_fs_function name="updateCart" receives="theOne">    
                alert(form.item_1);             
        </cf_fs_function>
But I don't get what I need when I do the following:
        <cf_fs_function name="updateCart" receives="theOne">    
                test = "form.item_"+"1";
                alert(eval(test));              
        </cf_fs_function>       

can someone point in the right direction?  Not really familiar with
javaScript.
Thanks in advance.

Ron Mast
Truth Hardware
Webmaster
(507)444-4748



Title: Concatination question...FusionScript related...sorry

Hi All,
I'm having trouble with something very simple…:(
Ok…I have created dynamic form variables like so 'form.item_Dynamic'.

I get the output I want when I do the following:
        <cf_fs_function name="updateCart" receives="theOne">   
                alert(form.item_1);            
        </cf_fs_function>
But I don’t get what I need when I do the following:
        <cf_fs_function name="updateCart" receives="theOne">   
                test = "form.item_"+"1";
                alert(eval(test));             
        </cf_fs_function>      

can someone point in the right direction?  Not really familiar with javaScript.
Thanks in advance.

Ron Mast
Truth Hardware
Webmaster
(507)444-4748

Reply via email to