URL variables are generally passed as key/value pairs.

index.cfm?foo=bar

<cfoutput>#URL.foo#</cfoutput> results in.. bar.

only strings can be passed in URLs.  you can't pass a complex datatype
(like a query, structure, array, etc).  Not without something like
serializing it into WDDX (essentially 'converts' a complex datatype to
a string...but not generally something you'd want to pass in a URL).


http://depressedpress.com/Content/Development/ColdFusion/Guides/Variables/Index.cfm
(i seem to recall pasting you that URL once before...?)

On 10/17/06, Richard White <[EMAIL PROTECTED]> wrote:
> 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:257105
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