Get uri LocalPath in jquery/JS?

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-03-12T11:16:55Z Indexed on 2010/03/12 11:17 UTC
Read the original article Hit count: 673

Filed under:
|

simple problem with a simple question. I have a string, in C# i can put it through a uri and access LocalPath

How do i get LocalPath in jquery or javascript? ( LocalPath: "/asas")

{http://z.com/asas?sadfdsgfg}

AbsolutePath: "/asas"
AbsoluteUri: "http://z.com/asas?sadfdsgfg"
Authority: "z.com"
DnsSafeHost: "z.com"
Fragment: ""
Host: "z.com"
HostNameType: Dns
IsAbsoluteUri: true
IsDefaultPort: true
IsFile: false
IsLoopback: false
IsUnc: false
LocalPath: "/asas"
OriginalString: "http://z.com/asas?sadfdsgfg"
PathAndQuery: "/asas?sadfdsgfg"
Port: 80
Query: "?sadfdsgfg"
Scheme: "http"
Segments: {string[2]}
UserEscaped: false
UserInfo: ""

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript