You need to give data1 a value first.
Example:
document.getElementById("ChartImage1").src =
"realtimechart.cfm?data1=something";
in realtimechart.cfm you would do something like...
<cfparam name="url.data1" default="defaultvalue" />
<cfoutput>#url.data1#</cfoutput>
-----Original Message-----
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 4:44 PM
To: CF-Talk
Subject: passing data in url
hi, i am wondering how to pass data in the url and then to use it in the
page i am calling.
I have seen this in the documentation somewhere but cant find it anywhere
now :(
i think i pass data as follows in javascript:
var data1 = "Friday";
document.getElementById("ChartImage1").src = "realtimechart.cfm?data1";
the realtimechart page i am calling uses cfscript but i dont know how to use
the data1 variable that i have just sent in the url.
also does it work the same for all datatypes, i.e. whether i pass a string,
array, structure etc...
thanks for any help
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:257106
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4