Returning Virtual Directory...

Results 1 to 2 of 2

Thread: Returning Virtual Directory...

  1. #1
    Join Date
    Dec 1969

    Default Returning Virtual Directory...

    Guys--<BR><BR>Can someone tell me of a way to parse the location.href method so that it only returns up to the point of the virtual directory...<BR><BR>For example, let&#039;s say my browser is pointed at:<BR><BR>http://localhost/virtualdirectory/subdirectory/subdirectory/page.aspx<BR><BR>How can I only return<BR><BR>http://localhost/virtualdirectory/<BR><BR>Any assistance would be great..!

  2. #2
    Join Date
    Dec 1969

    Default RE: Returning Virtual Directory...

    do a split(&#039;/&#039;)<BR><BR>use the bits you want, throw the others away.<BR><BR>there are other ways, but this one is braindead easy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts