One thing to add/correct from Philip's response:
#cgi.query_string# contains url parameters.
You can reference those as url.variablename (or just variablename) to get the values
most of the time.
One exception to look out for on that is if you have a url like this:
index.cfm?a=5&a=6&a=7
When the same variable is named several times, the variable only gets the last value
in the url, not all three. In that case, you have to use the List*() functions to get
the variables...
HTH
Larry
>>> [EMAIL PROTECTED] 05/31/00 11:07AM >>>
> 1) Can I call a JavaScript function from CF?
> Smth. like <CFSET x = f(y)>
>
> where f is a JavaScript function.
>
> I tried <CFSET x = f(y)>, but it didn't work.
Firstly, CF is SERVER-side, JavaScript is CLIENT-site, they are mutually exclusive
Secondly, Why not write the code in CFScript and just run it on the variable?
<CFScript>
y=y+10;
y=y*x;
y=y-z;
</CFScript>
Or whatever... but you can't create and call functions in CFScript.
> 2) How do I manage strings containing special characters as dbl.
> quote (i.e. ")
> Should I prefix them with something.
>
> I'd like to have an output like
>
> say "hello"
Double the quotes... <cfset s="say ""hello"""> or <cfset s="say
"hello""> will display the quotes properly (older browsers dislike
" as an output)
> 3) How can I get the value of each field in a query string?
> I know the #cgi.query_string# which returns the entire
> query string, but I
> want to access specific fields
#myQuery.ColumnList# is a comma separated list of the fields called in a
query, note that
select * from myTable
fields will be in the order that CF decides.
Philip Arnold
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.