Results 1 to 5 of 5

Thread: Did You Know?

  1. #1
    Join Date
    Dec 2004
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Did You Know?

    not sure if i can actually post this in this forum, but it pertains to html... so.
    did you know that you can link to folders, above the current file?
    example:
    file: xx.gif
    foler
    xx.html

    in the xx.html, you can link to the xx.gif without the whole url, simply put ..\ infront of the xx.gif.
    i learned this by downloading movies from wma, by dling from them, adding to a test playlist, then modifiying that to get the url, not sure if its legal. but i learned something. just thot id let you all know, not sure if you new it or not. and yes, ive tested this so it works. but i tested offline, however it should still work online.


    ... later

    ps. please dont ban me if you think this is useless, it can be used for keeping people from takeing files if they dont know wat ../ means. i think

    -darco

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by darco9x2
    example:
    file: xx.gif
    foler
    xx.html
    What's a foler? Is the above supposed to be code or a description of the directory (folder) layout?
    Code:
    ../xx.gif
    is a relative path. If used in an html file, it tells the browser that xx.gif is in the folder that contains the current folder so, find it there. Is this what you are talking about?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2004
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yah, and i meant folder...

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by darco9x2
    did you know that you can link to folders, above the current file?
    Using '..' to refer to a parent directory has been a basic staple of hierarchical file systems for an exceedingly long time, and has always been a feature of URLs.

    I take it you haven't read a post I wrote which covered the basics of relative URLs?

    There is an omission in that post: network paths, which are a form of relative URL. A network path looks like

    //domain.example.com/a/b/x.html

    In a document with the URL

    http://www.example.com/a/b/y.html

    the network path above refers to

    http://domain.example.com/a/b/x.html

    Essentially, it replaces everything but the scheme (http).

    Mike

  5. #5
    Join Date
    Dec 2004
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mwinter
    I take it you haven't read a post I wrote which covered the basics of relative URLs?
    ... no, i hadnt read that.

Bookmarks

Posting Permissions

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