> 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.
You're not actually setting the value of your URL parameter:
document.getElementById("ChartImage1").src = "realtimechart.cfm?data1=" +
data1
In realtimechart.cfm, you can then refer to URL.data1, which will contain
the value "Friday".
> also does it work the same for all datatypes, i.e. whether i
> pass a string, array, structure etc...
You can only pass values which can be represented as strings. Unless you
write some serialization code, you won't be able to pass JavaScript arrays
or objects from one page to another.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:257102
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4