Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting Query String in Parent Frame

0 views
Skip to first unread message

jimmy.hunt

unread,
Dec 12, 2005, 3:21:05 PM12/12/05
to
OK. I don't usually use frames but I'm stuck doing it for this project I'm
working on now.

I'm starting with a page that doesn't have a frame clicking on submit which
leads me to the framed page. Here is the url that leads to the framed page:

localhost/searchresults.cfm?start=1&end=10&results=test

How do I access the query string variables, (such as start, end, or results),
from a child frame?

Thanks!
James

jimmy.hunt

unread,
Dec 13, 2005, 10:49:43 AM12/13/05
to
You can add additional query string variables to the url, but if I use
cgi.query_string I'll end up with
www.domainname.com?fuseaction=name?fuseaction=anothername&test=1&test2=2

Two fuseactions gives an error.

How do you "format the values as a list and add as an additional query param?"

Thanks!
James

Stefan K.

unread,
Dec 13, 2005, 11:13:42 AM12/13/05
to
Originally posted by: jimmy.hunt

You can add additional query string variables to the url, but if I use
cgi.query_string I'll end up with
www.domainname.com?fuseaction=name?fuseaction=anothername&test=1&test2=2

The solution is to use URLEncodedFormat() and URLDecode()

instead of
www.domainname.com?fuseaction=#cgi.query_string#
use
www.domainname.com?fuseaction=#URLEncodedFormat(cgi.query_string)#

and on Serverside, convert back with
<cfset url.fuseaction = URLDecode(url.fuseaction)>

0 new messages