Well I am not going to say what the others have said.
First of all, currentRow is not the problem due to the fact that it is being
passed into the function. However the problem is that you have used a
coldfusion query and have expected it to be available on the client (not a
good idea).
On 6/15/07, Ben S <[EMAIL PROTECTED]> wrote:
>
> I'm trying to make the following work but CF complains about not having
> variable when it's loading the page. Is there a way to write it so that it
> won't complain?
>
> Thanks in advance.
>
> This is the code that's erroring out:
>
> function itemDetails(currentRow)
> {document.iDetails.title.value =
> "<cfoutput>"#getItems.title[currentRow]#";</cfoutput>";
> }
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281202
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4