Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Hyperlinks

Here's a question that you may find rather interesting. When your browser reads in a hyperlink, how does it determine if it should just stick your hyperlink into the location textbox, or if it should see it as another file in the same folder?

Specifically, this is what I am trying to get at. I have a website I just built, and I used Macromedia Fireworks to build the navigation bars. When it asked me what the destination should be, I typed in www.whatever.com/something/anything.html.

But now, when I uploaded the site, it doesn't read the destination like that, it pretends it is another page on the same server. And of course, I didn't put it there, and so it loads error 404.

I suspect that what I should have done is typed in http:// before the location. Is this the case? and is there any way I can write a little bit of Java Script to remedy the problem by cutting off the contents of the location textbox before trying to link to my location?

My deadline is Friday afternoon, by which time the site must be working, so any help ASP is appreciated. Thanks in advance.


Later in life you will be more disappointed by the things you haven't done than by those you have. So cast off the bowlines and sail away into the seas of opportunity.

Comments

  • JonathanJonathan Posts: 2,914Member
    Hiya,

    Maybe a little late for your deadlines, but yes it does look for the protocol at the start (or more likely, the server-name delimiter // or \), in your case the http:// bit, to determine if it is to go elsewhere or get a document from the current server. The reason being this is that I could on a server create a folder called www.somewhere.com - or anything like that.

    Hope that helps you understand a bit better. :)

    Take care,

    Jonathan

    ------------------------------------------
    Count downloads from your site for free!
    http://www.downloadcounter.com/


Sign In or Register to comment.