Re: url variables not picked up in url with # anchor
Anything after the # will be treated as the id of the anchor. So, in order for that url to work as you want you will need: http://www.site.com/page.cfm?foo=1#test Regards, Dominic On 15/11/2007, Will Swain [EMAIL PROTECTED] wrote: Can anyone help with this. This may be common knowledge but I've never come up against it before. http://www.site.com/page.cfm#test?foo=1 CF doesn't see the url variable on the end of the url. The CGI.ScriptName doesn't include it, in fact I can't see it included in any CGI variable. Is there a way of grabbing the url variable in these cases (where there is a # in the url), or will it simply not work? Oh, this is on IIS6 + CF 7.0.2 Thanks Will ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293367 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: url variables not picked up in url with # anchor
Try putting the anchor at the end, after the URL vars? -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 7:49 AM To: CF-Talk Subject: url variables not picked up in url with # anchor Can anyone help with this. This may be common knowledge but I've never come up against it before. http://www.site.com/page.cfm#test?foo=1 CF doesn't see the url variable on the end of the url. The CGI.ScriptName doesn't include it, in fact I can't see it included in any CGI variable. Is there a way of grabbing the url variable in these cases (where there is a # in the url), or will it simply not work? Oh, this is on IIS6 + CF 7.0.2 Thanks Will ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293369 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: url variables not picked up in url with # anchor
Problem is, the url variable is appended programatically to the link, which is added by the user. Guess I'll need some code to look for the existence of a pound sign, and if it finds one to split the string, insert the url variable and put it back together again. Cheers Will ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293370 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: url variables not picked up in url with # anchor
Off the top of my head, I think the #anchor has to come last. Everything after the pound sign is read as part of the anchor directive. So, page.cfm?foo=1#test should work. Not tested, YMMV. --Ben Doom Will Swain wrote: Can anyone help with this. This may be common knowledge but I've never come up against it before. http://www.site.com/page.cfm#test?foo=1 CF doesn't see the url variable on the end of the url. The CGI.ScriptName doesn't include it, in fact I can't see it included in any CGI variable. Is there a way of grabbing the url variable in these cases (where there is a # in the url), or will it simply not work? Oh, this is on IIS6 + CF 7.0.2 Thanks Will ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293373 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: url variables not picked up in url with # anchor
The anchor goes at the very end of the url (after any query string) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 8:49 AM To: CF-Talk Subject: url variables not picked up in url with # anchor Can anyone help with this. This may be common knowledge but I've never come up against it before. http://www.site.com/page.cfm#test?foo=1 CF doesn't see the url variable on the end of the url. The CGI.ScriptName doesn't include it, in fact I can't see it included in any CGI variable. Is there a way of grabbing the url variable in these cases (where there is a # in the url), or will it simply not work? Oh, this is on IIS6 + CF 7.0.2 Thanks Will ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293392 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: url variables
Some people will no doubt show you a better way, but the quick a dirty way is to do this: isDefined(evaluate(url.Task#i#)) Chris -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 12:57 PM To: CF-Talk Subject: url variables hi, i have a page that submits values to a form as follows: var sendString = rowNum= + taskGrid.getRowsNum(); for (i=1;i=taskGrid.getRowsNum();i++) { sendString = sendString + Task + a += + taskGrid.cells(i, 1).getValue(); a++; } (new Image()).src = updater.cfm? + sendString; Therefore the update.cfm page will recieve: url.Task1 = ... url.Task2 = ... url.Task3 = ... etc... and will contain x amount of tasks in the url variable dependant on how many rows there are in the grid The problem i am having is that i want to reference them in the update.cfm page like this cfloop index=i from=1 to=#url.rowNum# cfif isdefined(url.Task i)/ /cfif /cfloop but it keeps giving me an error as it isnt recocognising isdefined(url.Task i) of course if i change this to isdefined(url.Task1) then it works fine. is there are way that i can concertanate the url.Task with the value of i and access the url.Task1 i would appreciate any help with this thanks ~| 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:258883 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: url variables
try isdefined(url.Task#i#) hth Charlie Hanlon - Original Message - From: Richard White [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, November 02, 2006 12:57 PM Subject: url variables hi, i have a page that submits values to a form as follows: var sendString = rowNum= + taskGrid.getRowsNum(); for (i=1;i=taskGrid.getRowsNum();i++) { sendString = sendString + Task + a += + taskGrid.cells(i, 1).getValue(); a++; } (new Image()).src = updater.cfm? + sendString; Therefore the update.cfm page will recieve: url.Task1 = ... url.Task2 = ... url.Task3 = ... etc... and will contain x amount of tasks in the url variable dependant on how many rows there are in the grid The problem i am having is that i want to reference them in the update.cfm page like this cfloop index=i from=1 to=#url.rowNum# cfif isdefined(url.Task i)/ /cfif /cfloop but it keeps giving me an error as it isnt recocognising isdefined(url.Task i) of course if i change this to isdefined(url.Task1) then it works fine. is there are way that i can concertanate the url.Task with the value of i and access the url.Task1 i would appreciate any help with this thanks ~| 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:258882 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: url variables
cfif isDefined(URL.task#i#) or cfif structKeyExists(URL, task#i#) On 11/2/06, Richard White [EMAIL PROTECTED] wrote: hi, i have a page that submits values to a form as follows: var sendString = rowNum= + taskGrid.getRowsNum(); for (i=1;i=taskGrid.getRowsNum();i++) { sendString = sendString + Task + a += + taskGrid.cells(i, 1).getValue(); a++; } (new Image()).src = updater.cfm? + sendString; Therefore the update.cfm page will recieve: url.Task1 = ... url.Task2 = ... url.Task3 = ... etc... and will contain x amount of tasks in the url variable dependant on how many rows there are in the grid The problem i am having is that i want to reference them in the update.cfm page like this cfloop index=i from=1 to=#url.rowNum# cfif isdefined(url.Task i)/ /cfif /cfloop but it keeps giving me an error as it isnt recocognising isdefined(url.Task i) of course if i change this to isdefined(url.Task1) then it works fine. is there are way that i can concertanate the url.Task with the value of i and access the url.Task1 i would appreciate any help with this thanks ~| 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:258885 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: url variables
The URL scope is stored as a structure. You can use cfloop to loop over a collection of the variables. For example: cfset url.task1 = 1 cfset url.task2 = 2 cfset url.task3 = 1 cfset url.dog = dog cfloop collection=#url# item=key cfif FindNoCase(task,key) cfoutput#key# : #url[key]#br //cfoutput /cfif /cfloop This code will only output any URL variable that has the word task in it no matter how many their are. Makes sense? Teddy On 11/2/06, Richard White [EMAIL PROTECTED] wrote: hi, i have a page that submits values to a form as follows: var sendString = rowNum= + taskGrid.getRowsNum(); for (i=1;i=taskGrid.getRowsNum();i++) { sendString = sendString + Task + a += + taskGrid.cells(i, 1).getValue(); a++; } (new Image()).src = updater.cfm? + sendString; Therefore the update.cfm page will recieve: url.Task1 = ... url.Task2 = ... url.Task3 = ... etc... and will contain x amount of tasks in the url variable dependant on how many rows there are in the grid The problem i am having is that i want to reference them in the update.cfmpage like this cfloop index=i from=1 to=#url.rowNum# cfif isdefined(url.Task i)/ /cfif /cfloop but it keeps giving me an error as it isnt recocognising isdefined( url.Task i) of course if i change this to isdefined(url.Task1) then it works fine. is there are way that i can concertanate the url.Task with the value of i and access the url.Task1 i would appreciate any help with this thanks ~| 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:258889 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: url variables
This should do it: isDefined ( 'URL[task 1]' ) On 11/2/06, Richard White [EMAIL PROTECTED] wrote: hi, i have a page that submits values to a form as follows: var sendString = rowNum= + taskGrid.getRowsNum(); for (i=1;i=taskGrid.getRowsNum();i++) { sendString = sendString + Task + a += + taskGrid.cells(i, 1).getValue(); a++; } (new Image()).src = updater.cfm? + sendString; Therefore the update.cfm page will recieve: url.Task1 = ... url.Task2 = ... url.Task3 = ... etc... and will contain x amount of tasks in the url variable dependant on how many rows there are in the grid The problem i am having is that i want to reference them in the update.cfm page like this cfloop index=i from=1 to=#url.rowNum# cfif isdefined(url.Task i)/ /cfif /cfloop but it keeps giving me an error as it isnt recocognising isdefined(url.Task i) of course if i change this to isdefined(url.Task1) then it works fine. is there are way that i can concertanate the url.Task with the value of i and access the url.Task1 i would appreciate any help with this thanks ~| 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:258893 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: url variables
thanks for your replies, thats brilliant i especially like the cfloop through the structure thanks teddy ~| 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:258910 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: url variables
forgive me for my ignorance but i have managed to get it working and going into the loop with cfif isdefined(url.Milestone#i#) but now when i want to get the value for it i am also getting errors for example i am trying cfoutputurl.Milestone#i#/cfoutput although no error are occuring it is not outputting the value, of course it wont as the url.milestone is not in the ## but i cant figure out how to do it appreciate any help thanks ~| 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:258928 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: url variables
#URL[Milestone i]# On 11/2/06, Richard White [EMAIL PROTECTED] wrote: forgive me for my ignorance but i have managed to get it working and going into the loop with cfif isdefined(url.Milestone#i#) but now when i want to get the value for it i am also getting errors for example i am trying cfoutputurl.Milestone#i#/cfoutput although no error are occuring it is not outputting the value, of course it wont as the url.milestone is not in the ## but i cant figure out how to do it appreciate any help thanks ~| 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:258930 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: url variables
try this. cfoutput#url[Milestone i]#/cfoutput hth charlie - Original Message - From: Richard White [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, November 02, 2006 4:01 PM Subject: Re: url variables forgive me for my ignorance but i have managed to get it working and going into the loop with cfif isdefined(url.Milestone#i#) but now when i want to get the value for it i am also getting errors for example i am trying cfoutputurl.Milestone#i#/cfoutput although no error are occuring it is not outputting the value, of course it wont as the url.milestone is not in the ## but i cant figure out how to do it appreciate any help thanks ~| 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:258931 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: url variables
#URL[Milestone i]# perfect thanks charlie ~| 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:258932 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: URL Variables
You can encrypt newurl value and decrypt it in your action page. Simple and cool. Or use session vars to store that url vars. Cheers. MD 2005/10/18, B G [EMAIL PROTECTED]: Is this possible? I want to pass a string containing URL variables through a URL. For example: www.domain.com/page.cfm?newURL=www.domain.com/page2.cfm?var1=avar2=b In other words on page2.cfm I should reference #URL.newURL# outputs www.domain.com/page2.cfm?var1=avar2=b Thanks ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221393 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: URL Variables
perhaps...if you wrap it in a URLEncodedFormat(). otherwise, if the ? after 'page2.cfm' doesn't break it, the after var1=a certainly will (well, not break it...but it won't work like you're expecting) :) On 10/18/05, B G [EMAIL PROTECTED] wrote: Is this possible? I want to pass a string containing URL variables through a URL. For example: www.domain.com/page.cfm?newURL=www.domain.com/page2.cfm?var1=avar2=b In other words on page2.cfm I should reference #URL.newURL# outputs www.domain.com/page2.cfm?var1=avar2=b Thanks ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221394 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: URL Variables
URLEncodedFormat will change all the special characters in the newURL var into url-safe form (% values) instead of the = ? , so the newURL var will have all the content you want. The only other way I can suggest is parsing the cgi.query_string and splitting the tokens yourself. (cfset newURL=replacenocase(cgi.query_string,newURL=,)) On 10/18/05, Charlie Griefer [EMAIL PROTECTED] wrote: perhaps...if you wrap it in a URLEncodedFormat(). otherwise, if the ? after 'page2.cfm' doesn't break it, the after var1=a certainly will (well, not break it...but it won't work like you're expecting) :) On 10/18/05, B G [EMAIL PROTECTED] wrote: Is this possible? I want to pass a string containing URL variables through a URL. For example: www.domain.com/page.cfm?newURL=www.domain.com/page2.cfm?var1=avar2=b In other words on page2.cfm I should reference #URL.newURL# outputs www.domain.com/page2.cfm?var1=avar2=b ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221398 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: URL Variables
Urlencodedformat() everything after '?newURL=' And then urlDecode(url.newurl) when you need to pull it back out www.domain.com/page.cfm?newURL=#urlencodedformat(www.domain.com/page2.cfm?va r1=avar2=b)# and... #urldecode(url.newURL)# ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: B G [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 5:42 PM To: CF-Talk Subject: URL Variables Is this possible? I want to pass a string containing URL variables through a URL. For example: www.domain.com/page.cfm?newURL=www.domain.com/page2.cfm?var1=avar2=b In other words on page2.cfm I should reference #URL.newURL# outputs www.domain.com/page2.cfm?var1=avar2=b Thanks ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221409 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: URL Variables
Thanks! From: Bobby Hartsfield [EMAIL PROTECTED] Reply-To: cf-talk@houseoffusion.com To: CF-Talk cf-talk@houseoffusion.com Subject: RE: URL Variables Date: Tue, 18 Oct 2005 18:26:29 -0400 Urlencodedformat() everything after '?newURL=' And then urlDecode(url.newurl) when you need to pull it back out www.domain.com/page.cfm?newURL=#urlencodedformat(www.domain.com/page2.cfm?va r1=avar2=b)# and... #urldecode(url.newURL)# ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: B G [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 5:42 PM To: CF-Talk Subject: URL Variables Is this possible? I want to pass a string containing URL variables through a URL. For example: www.domain.com/page.cfm?newURL=www.domain.com/page2.cfm?var1=avar2=b In other words on page2.cfm I should reference #URL.newURL# outputs www.domain.com/page2.cfm?var1=avar2=b Thanks ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221413 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: URL Variables in the form of index.cfm?DJIE332
#CGI.QUERYSTRING# returns everything after the ? in the URL, if you have a list of values of the fomat http://www.mysite.com?DE1122HF3433HG3454, CGI.QUERYSTRING would return DE1122HF3433HG3454, you can then break it up as a list delimited by ''. HTH Donnie Bachan Phone: (718) 217-2883 ICQ#: 28006783 Nitendo Vinces - By Striving You Shall Conquer == The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: URL Variables in CFMX read-only?
Not true. === Raymond Camden, ColdFusion Jedi Master for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Reilly, Jim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:22 AM To: CF-Talk Subject: URL Variables in CFMX read-only? I heard that URL variables in CFMX are read only. Is this true? I sometimes will do something like this, that will break if its true: cfparam name=URL.MaxRowsToShow default=5 type=numeric __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: URL Variables
Check out the encrypt() function. EC -Original Message- From: Bonzi Bohill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 9:14 AM To: CF-Talk Subject: URL Variables We have an application where we have to pass specific information across pages using url variables. Is there any way in which we can encode or hide these variables in the bottom of the browser or / and when the user views the properties of a specific page. Cheers. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: URL Variables
You can set them up as variables or send them in a form. JoAnn A. Schlosser Senior Consultant Association Management Software Grant Thornton LLP Washington, D. C. 703.837.4428 -Original Message- From: Bonzi Bohill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 9:14 AM To: CF-Talk Subject: URL Variables We have an application where we have to pass specific information across pages using url variables. Is there any way in which we can encode or hide these variables in the bottom of the browser or / and when the user views the properties of a specific page. Cheers. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: url variables
StructKeyList(URL) Steve -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 10:26 To: CF-Talk Subject: url variables This is a multi-part message in MIME format. --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anyone know how I can get a list of all URL variables? I know the #query_string# variable gives all the url parameters but = that's not what I need. jon --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTMLHEAD META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR STYLE/STYLE /HEAD BODY bgColor=3D#ff DIVFONT face=3DArial size=3D2Anyone know how I can get a list of all = URL=20 variables?/FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2I know the #query_string# variable = gives all the=20 url parameters but that's not what I need./FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2jon/FONT/DIV/BODY/HTML --=_NextPart_000_0011_01C03731.8F6351F0-- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: url variables
Thanks Steve. The only problem is that this only seems to work on 4.5 servers. On my 4.0 server I get an Error resolving parameter URL, error. Seems to me that the URL structure is either named something else or there is a totally different way of getting it. hmmm jon - Original Message - From: "Steve Martin" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Monday, October 16, 2000 5:36 AM Subject: RE: url variables StructKeyList(URL) Steve -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 10:26 To: CF-Talk Subject: url variables This is a multi-part message in MIME format. --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anyone know how I can get a list of all URL variables? I know the #query_string# variable gives all the url parameters but = that's not what I need. jon --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTMLHEAD META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR STYLE/STYLE /HEAD BODY bgColor=3D#ff DIVFONT face=3DArial size=3D2Anyone know how I can get a list of all = URL=20 variables?/FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2I know the #query_string# variable = gives all the=20 url parameters but that's not what I need./FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2jon/FONT/DIV/BODY/HTML --=_NextPart_000_0011_01C03731.8F6351F0-- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
never mind...got a solution Re: url variables
cfloop index="u" list="#cgi.QUERY_STRING#" delimiters="" #u# /cfloop jon - Original Message - From: "Steve Martin" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Monday, October 16, 2000 5:36 AM Subject: RE: url variables StructKeyList(URL) Steve -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 10:26 To: CF-Talk Subject: url variables This is a multi-part message in MIME format. --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anyone know how I can get a list of all URL variables? I know the #query_string# variable gives all the url parameters but = that's not what I need. jon --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTMLHEAD META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR STYLE/STYLE /HEAD BODY bgColor=3D#ff DIVFONT face=3DArial size=3D2Anyone know how I can get a list of all = URL=20 variables?/FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2I know the #query_string# variable = gives all the=20 url parameters but that's not what I need./FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2jon/FONT/DIV/BODY/HTML --=_NextPart_000_0011_01C03731.8F6351F0-- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: url variables
If I'm not mistaken there is no url structure in 4.0. URL variables weren't dropped into a structure until 4.5. __ Dennis P. Grady Fig Leaf Software Senior Developer/Team Leader Certified Allaire Trainer W: 202.797.5450 F: 202.797.5444 -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 7:28 AM To: CF-Talk Subject:Re: url variables Thanks Steve. The only problem is that this only seems to work on 4.5 servers. On my 4.0 server I get an Error resolving parameter URL, error. Seems to me that the URL structure is either named something else or there is a totally different way of getting it. hmmm jon - Original Message - From: "Steve Martin" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Monday, October 16, 2000 5:36 AM Subject: RE: url variables StructKeyList(URL) Steve -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 10:26 To: CF-Talk Subject: url variables This is a multi-part message in MIME format. --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anyone know how I can get a list of all URL variables? I know the #query_string# variable gives all the url parameters but = that's not what I need. jon --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTMLHEAD META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR STYLE/STYLE /HEAD BODY bgColor=3D#ff DIVFONT face=3DArial size=3D2Anyone know how I can get a list of all = URL=20 variables?/FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2I know the #query_string# variable = gives all the=20 url parameters but that's not what I need./FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2jon/FONT/DIV/BODY/HTML --=_NextPart_000_0011_01C03731.8F6351F0-- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: url variables
That is correct. The following should allow you to access the URL structure in 4.0 and above by creating a structure called URL for versions which don't automatically provide the URL vars in a struct. CFSET VersionA=ListGetAt(Server.ColdFusion.ProductVersion,1) CFSET VersionB=ListGetAt(Server.ColdFusion.ProductVersion,2) CFSET VersionC=ListGetAt(Server.ColdFusion.ProductVersion,3) CFSET VersionCurrent=VersionA+VersionB/10+VersionC/100 CFSET VersionRequiredForStruct=4.5 CFIF VersionCurrent lt VersionRequiredForStruct cfset url=StructNew() cfloop list="#cgi.query_string#" index="ValuePair" delimiters="" cfset StructInsert(url, ListFirst(ValuePair, "="), ListLast(ValuePair, "=")) /cfloop /CFIF Steve -Original Message- From: Dennis Grady [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 12:38 To: CF-Talk Subject: RE: url variables If I'm not mistaken there is no url structure in 4.0. URL variables weren't dropped into a structure until 4.5. __ Dennis P. Grady Fig Leaf Software Senior Developer/Team Leader Certified Allaire Trainer W: 202.797.5450 F: 202.797.5444 -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 7:28 AM To: CF-Talk Subject: Re: url variables Thanks Steve. The only problem is that this only seems to work on 4.5 servers. On my 4.0 server I get an Error resolving parameter URL, error. Seems to me that the URL structure is either named something else or there is a totally different way of getting it. hmmm jon - Original Message - From: "Steve Martin" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Monday, October 16, 2000 5:36 AM Subject: RE: url variables StructKeyList(URL) Steve -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, October 16, 2000 10:26 To: CF-Talk Subject: url variables This is a multi-part message in MIME format. --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anyone know how I can get a list of all URL variables? I know the #query_string# variable gives all the url parameters but = that's not what I need. jon --=_NextPart_000_0011_01C03731.8F6351F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTMLHEAD META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR STYLE/STYLE /HEAD BODY bgColor=3D#ff DIVFONT face=3DArial size=3D2Anyone know how I can get a list of all = URL=20 variables?/FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2I know the #query_string# variable = gives all the=20 url parameters but that's not what I need./FONT/DIV DIVnbsp;/DIV DIVFONT face=3DArial size=3D2jon/FONT/DIV/BODY/HTML --=_NextPart_000_0011_01C03731.8F6351F0-- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.