Charlie...

He's talking about javascript it looks like.

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 4:02 PM
To: CF-Talk
Subject: Re: passing data in url


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/In
dex.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:257112
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