URI Stem

Discussion in 'Javascript' started by Aaron, Sep 18, 2006.

  1. Aaron

    Aaron Guest

    Does anyone have a function I could use to pull out the URI stem of a
    document ?
     
    Aaron, Sep 18, 2006
    #1
    1. Advertisements

  2. Aaron

    McKirahan Guest

    McKirahan, Sep 18, 2006
    #2
    1. Advertisements

  3. Aaron

    Aaron Guest

    That is showing as undefinded when I try to alert it..
    McKirahan wrote:
    > "Aaron" <> wrote in message
    > news:...
    > > Does anyone have a function I could use to pull out the URI stem of a
    > > document ?

    >
    > Are you talking about parsing "location.path"?
    >
    > http://en.wikipedia.org/wiki/Uniform_Resource_Identifier
     
    Aaron, Sep 19, 2006
    #3
  4. Aaron

    McKirahan Guest

    "Aaron" <> wrote in message
    news:...
    > That is showing as undefinded when I try to alert it..


    [snip]

    Show us your code. Is it like the following?

    <script type="text/javascript">
    alert(location.path);
    </script>
     
    McKirahan, Sep 19, 2006
    #4
  5. Aaron

    Aaron Guest

    Exactly that in fact...

    The alert window shows 'undefined'


    McKirahan wrote:
    > "Aaron" <> wrote in message
    > news:...
    > > That is showing as undefinded when I try to alert it..

    >
    > [snip]
    >
    > Show us your code. Is it like the following?
    >
    > <script type="text/javascript">
    > alert(location.path);
    > </script>
     
    Aaron, Sep 20, 2006
    #5
  6. Aaron

    McKirahan Guest

    "Aaron" <> wrote in message
    news:...
    > Exactly that in fact...
    >
    > The alert window shows 'undefined'


    [snip]

    As I said: "Show us your code.".
     
    McKirahan, Sep 20, 2006
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Harris
    Replies:
    0
    Views:
    6,786
    Simon Harris
    May 10, 2005
  2. Stanimir Stamenkov
    Replies:
    1
    Views:
    2,941
    Stanimir Stamenkov
    Aug 17, 2005
  3. Pavel
    Replies:
    2
    Views:
    2,059
    Peter Flynn
    Aug 4, 2004
  4. etheriau
    Replies:
    1
    Views:
    882
    Pavel
    Aug 23, 2004
  5. Joe Curry

    Invalid URI: The format of the URI could not be determined.

    Joe Curry, Oct 8, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    540
    Joe Curry
    Oct 8, 2003
  6. Jay 99
    Replies:
    2
    Views:
    416
    Jay 99
    Apr 4, 2009
  7. Gerwin
    Replies:
    0
    Views:
    290
    Gerwin
    Feb 6, 2007
  8. Turbo
    Replies:
    2
    Views:
    314
    Turbo
    Nov 1, 2006
Loading...