House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Is there an anchor in a URL String

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Harrison
09/02/2010 12:55 PM

I need to know if there is an anchor in a URL string (e.g., http://mylink.cfm#thisanchor). Doing a CF dump and listing of every cgi var I know of does not give me that information. Is there any way I can tell if a URL contains an anchor? Thanks Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or.  It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged __________ Information from ESET Smart Security, version of virus signature database 5419 (20100902) __________ The message was checked by ESET Smart Security. http://www.eset.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
09/02/2010 01:02 PM

> I need to know if there is an anchor in a URL string (e.g., > http://mylink.cfm#thisanchor). > > Doing a CF dump and listing of every cgi var I know of does not give me that > information. > > Is there any way I can tell if a URL contains an anchor? This information is not sent to the server. It's used to allow the browser to navigate within a page, but doesn't require that the browser request the page from the server. So, you can't tell this from CF. You could do it from JavaScript, then send that information to the server. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andy Matthews
09/02/2010 01:18 PM

I think it's because the # doesn't do anything server side. You can definitely get it with Javascript. It works like so: Assuming this link: /test.cfm#anchor This code: <script type="text/javascript"> <!--   alert(location.hash); //--> </script> Outputs this: #anchor You could then pass that off to CF via AJAX if you needed to. andy I need to know if there is an anchor in a URL string (e.g., http://mylink.cfm#thisanchor). Doing a CF dump and listing of every cgi var I know of does not give me that information. Is there any way I can tell if a URL contains an anchor? Thanks Robert B. Harrison

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Harrison
09/02/2010 02:50 PM

I need to know if there is an anchor in a URL string (e.g., http://mylink.cfm#thisanchor). Doing a CF dump and listing of every cgi var I know of does not give me that information. Is there any way I can tell if a URL contains an anchor? Thanks Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or.  It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged __________ Information from ESET Smart Security, version of virus signature database 5419 (20100902) __________ The message was checked by ESET Smart Security. http://www.eset.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
09/02/2010 03:03 PM

As far as I know, no. You would need to do it client side. On Thu, Sep 2, 2010 at 1:50 PM, Robert Harrison <robert@austin-williams.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
09/02/2010 03:04 PM

Ugh sorry - for some reason GMail put this msg above the earlier thread. On Thu, Sep 2, 2010 at 2:03 PM, Raymond Camden <rcamden@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andy Matthews
09/02/2010 03:18 PM

Robert... Did you get my previous email about doing it with JavaScript? andy I need to know if there is an anchor in a URL string (e.g., http://mylink.cfm#thisanchor). Doing a CF dump and listing of every cgi var I know of does not give me that information. Is there any way I can tell if a URL contains an anchor? Thanks Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or.  It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged __________ Information from ESET Smart Security, version of virus signature database 5419 (20100902) __________ The message was checked by ESET Smart Security. http://www.eset.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Harrison
09/02/2010 03:22 PM

Thanks. Yes. Resending that was an accident. Bottom line is since I can't tell if there is an anchor I have to rethink what I wanted to do. Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or.  It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged Robert... Did you get my previous email about doing it with JavaScript? andy I need to know if there is an anchor in a URL string (e.g., http://mylink.cfm#thisanchor). Doing a CF dump and listing of every cgi var I know of does not give me that information. Is there any way I can tell if a URL contains an anchor? Thanks Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or.  It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged __________ Information from ESET Smart Security, version of virus signature database 5419 (20100902) __________ The message was checked by ESET Smart Security. http://www.eset.com


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

February 08, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29