alert("string");
alert(number);
alert(boolean);

that's why it works with the alert.  strings in an alert need to be in
quotes.  other values such as numerics or booleans do not.

can you do me a favor and view the source of your page and copy/paste
the rendered JavaScript?  or if possible give a URL to the page so I
can view source?


On 11/1/06, Richard White <[EMAIL PROTECTED]> wrote:
> thanks for the replies
>
> if i take the quotes away when using the array it doesnt work:
>
> alert(<cfoutput>#session.milestone[1].name#</cfoutput>);
>
> this doesnt work but if i put the quotes it does:
>
> alert("<cfoutput>#session.milestone[1].name#</cfoutput>");
>
> even if i try it both ways with the i for the index it says the same thing
>
> i am trying to do this for the time being just to get it to work without the 
> struct count but using the for loop:
>
> for(i=1; i<= 4;i++)
>
> but it is still saying the same error about element 5
>
> thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258778
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to