RE: url variables not picked up in url with # anchor

2007-11-15 Thread Bobby Hartsfield
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 not picked up in url with # anchor

2007-11-15 Thread Ben Doom
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

2007-11-15 Thread Will Swain
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=finder&productID=1522&loc=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

2007-11-15 Thread Andy Matthews
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-72&catid=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

2007-11-15 Thread Dominic Watson
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-72&catid=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