Results 1 to 2 of 2

Thread: href base url

  1. #1
    Lively Member
    Join Date
    Dec 09
    Posts
    104

    href base url

    You got a site:
    http://www.mysite.com/test/

    theres a index.html in there.

    In the HTML source of the index.html file there a HREF link:
    Href="/images/site.ico"

    now will it ALWAYS be true that the actual full path of the ico file is:
    http://www.mysite.com/images/site.ico

    Or Could it or WOuld it always be:
    http://www.mysite.com/test/images/site.ico
    If youre a graphic designer and got some spare time to work on freeware projects pm me. Mainly GUI and game sprites.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 02
    Posts
    21,636

    Re: href base url

    depends... if the href base has been set to the site (www.mysite.com/test) then the second will be true... otherwise the first will be true. Now if you drop the leading / from the href, then the second would be true.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    *Proof positive that searching the forums does work: View Thread *
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *
    * Use Offensive Programming, not Defensive Programming. * On Error Resume Next is error ignoring, not error handling(tm).
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN

Posting Permissions

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