URL Parameter list?
I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: URL Parameter list?
URL is a structure in CFMX, and CF5 as well, I believe. so you can use structKeyList(url) to get a list, or do a loop like this: cfloop collection=#url# item=i ... /cfloop barneyb -Original Message- From: Edwards Robert (air0rae) [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 10:26 AM To: CF-Talk Subject: URL Parameter list? I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: URL Parameter list?
cgi.query_string This is a set of name and value pairs. To break these into tokens, split them by the or ?, then look on either side of the = If you need more specifics, yell again. Jerry Johnson [EMAIL PROTECTED] 03/21/03 01:25PM I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: URL Parameter list?
This will point ya in the right direction (modify for your needs): !--- create a list of URL variables and values --- cfset keysToStruct = StructKeyArray(URL) cfset URLList = cfloop index=i from=1 to=#ArrayLen(keysToStruct)# cfset URLList = ListAppend(URLList,#keysToStruct[i]#=#url[keysToStruct[i]]#) /cfloop HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Edwards Robert (air0rae) [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 21, 2003 10:25 AM Subject: URL Parameter list? I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: URL Parameter list?
Rob, You can use CFSCRIPT and PARSE the URL. ItÂ’s a pain in the butt! I feel your pain I just ran into this issue where I had a requirement to use GET, do to an IE issue with a JavaScript reload to a Parent window from a child window. My work around was in the end to just use a self submitting form and set the form variables to SESSION variables then where I needed the variables I set them to the proper scope and CFLOCKed them down. Regards, James Blaha Edwards Robert (air0rae) wrote: I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: URL Parameter list?
Thanks for all the help. What I ended up doing was cfif isDefined(URL.fuseaction) cfloop collection=#URL# item=fname cfif #Evaluate(URL. fname)# neq cfset paramlist = paramlistfname = URLEncodedFormat(#StructFind(URL, fname)#) /cfif /cfloop /cfif DANGIT.. I JUST realized that all I'm doing there is passing the query string from one parameter to another. cfset paramlist= #CGI.QUERY_STRING# Does the same thing I was trying to do in the first place! Chalk it up to a bad Friday. Thanks anyway, Rob -Original Message- From: James Blaha [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 1:35 PM To: CF-Talk Subject: Re: URL Parameter list? Rob, You can use CFSCRIPT and PARSE the URL. It's a pain in the butt! I feel your pain I just ran into this issue where I had a requirement to use GET, do to an IE issue with a JavaScript reload to a Parent window from a child window. My work around was in the end to just use a self submitting form and set the form variables to SESSION variables then where I needed the variables I set them to the proper scope and CFLOCKed them down. Regards, James Blaha Edwards Robert (air0rae) wrote: I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: URL Parameter list?
arrrgggEvaluate() is evil ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Edwards Robert (air0rae) [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 21, 2003 10:48 AM Subject: RE: URL Parameter list? Thanks for all the help. What I ended up doing was cfif isDefined(URL.fuseaction) cfloop collection=#URL# item=fname cfif #Evaluate(URL. fname)# neq cfset paramlist = paramlistfname = URLEncodedFormat(#StructFind(URL, fname)#) /cfif /cfloop /cfif DANGIT.. I JUST realized that all I'm doing there is passing the query string from one parameter to another. cfset paramlist= #CGI.QUERY_STRING# Does the same thing I was trying to do in the first place! Chalk it up to a bad Friday. Thanks anyway, Rob -Original Message- From: James Blaha [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 1:35 PM To: CF-Talk Subject: Re: URL Parameter list? Rob, You can use CFSCRIPT and PARSE the URL. It's a pain in the butt! I feel your pain I just ran into this issue where I had a requirement to use GET, do to an IE issue with a JavaScript reload to a Parent window from a child window. My work around was in the end to just use a self submitting form and set the form variables to SESSION variables then where I needed the variables I set them to the proper scope and CFLOCKed them down. Regards, James Blaha Edwards Robert (air0rae) wrote: I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: URL Parameter list?
Rob, Just incase you want it this is what I did for the self submitting form. Just add a input type=hidden name=submitFlag value=1 inside your form for it to work. CFIF IsDefined(Submit) CFIF IsDefined(FORM.submitFlag) CFLOCK SCOPE=SESSION TYPE=EXCLUSIVE TIMEOUT=10 !--- Delete old stored search criteria. --- CFSET StructDelete(SESSION, Query.xxx) CFSET SESSION.Query.xxx = TRIM(FORM.xxx) /CFLOCK CFELSE !--- *** Do Nothing! *** --- /CFIF SCRIPT window.open('ResultSet.cfm','mainFrame'); /SCRIPT CFELSE !--- *** Do Nothing! *** --- /CFIF Edwards Robert (air0rae) wrote: Thanks for all the help. What I ended up doing was cfif isDefined(URL.fuseaction) cfloop collection=#URL# item=fname cfif #Evaluate(URL. fname)# neq cfset paramlist = paramlistfname = URLEncodedFormat(#StructFind(URL, fname)#) /cfif /cfloop /cfif DANGIT.. I JUST realized that all I'm doing there is passing the query string from one parameter to another. cfset paramlist= #CGI.QUERY_STRING# Does the same thing I was trying to do in the first place! Chalk it up to a bad Friday. Thanks anyway, Rob -Original Message- From: James Blaha [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 1:35 PM To: CF-Talk Subject: Re: URL Parameter list? Rob, You can use CFSCRIPT and PARSE the URL. It's a pain in the butt! I feel your pain I just ran into this issue where I had a requirement to use GET, do to an IE issue with a JavaScript reload to a Parent window from a child window. My work around was in the end to just use a self submitting form and set the form variables to SESSION variables then where I needed the variables I set them to the proper scope and CFLOCKed them down. Regards, James Blaha Edwards Robert (air0rae) wrote: I know I can loop through form variables by using Form.FieldNames as a list, but is there a similar ability to loop through the URL Parameter? (IE. I use form action get instead of post). I need this ASAP as I have to turn over a project today. Thanks, Rob ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4