listFirst(url.page, "##") Regards Dale Fraser
http://dale.fraser.id.au http://learncf.com http://flexcf.com -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Matthew Sent: Thursday, 29 January 2009 11:15 AM To: cfaussie Subject: [cfaussie] URL variable error when an anchor is included Hi everyone I'm trying to solve a problem where my CF code throws an error because it thinks that an anchor in the URL is part of a URL variable. It works fine in most browsers it's just IE 6 that spits the dummy. The odd thing is that if you type the URL straight into IE6 it's fine and even if you refresh the page which threw the error it's fine. It seems to only happen when you redirect to the page (I initially got the error from a re-direction off a 3rd party website but I can replicate it with CFLOCATION)!! So here's an example "/test.cfm?page=about_us#phone" where usually when you call url.page it would return "about_us" but it is returning "about_us#phone". This must be a bug in IE6. I've read a few posts where others have come across this and one solution was to insert an "&" character before the anchor i.e. "/ test.cfm?page=about_us&#phone" but this will be a big job because there are quite a few links that would need to be changed on the 3rd party website. I know I could write my own URL variable extractor (by analysing CGI.query_string) but that would be crazy. Has anyone else come across this and found an easy solution? Is there a patch to CF to fix this perhaps? Cheers Matthew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
