Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
You learn something new every day
Old 11-24-2009, 01:14 PM You learn something new every day
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Did you know that full URLs can be expressed in a relative syntax, without including the protocol? Call me ignorant, but I had never heard of this until today. I found this when researching HTTPS: http://b-s.me/ba
Code:
//b-s.me/ba
is the same as:
Code:
http://b-s.me/ba
except that the former example uses the protocol that is currently on the page. This works in every browser, and is a little used, original part of HTML. Why have I never heard of this before?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
 
Register now for full access!
Old 11-24-2009, 04:36 PM Re: You learn something new every day
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Can't say I've ever seen that before either. I knew about root relative URLs with the single / out front, but never saw using two to stand for the current protocol.

Guess I learned something new today too.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 11-24-2009, 05:03 PM Re: You learn something new every day
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
It didn't work for me, but then again, that's just me I guess...Btw, tried: //google.com resorted to file:////google.com which doesn't exist.

Are you sure you learned something new, or maybe just a bit too much time in front of the computer.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-24-2009, 05:10 PM Re: You learn something new every day
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Brian this is when adding a link to a web page, not typing into the address bar of your browser. Different scenario.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 12-07-2009 at 07:26 PM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 11-24-2009, 05:45 PM Re: You learn something new every day
Steve-Hostirian's Avatar
Skilled Talker

Posts: 58
Name: Steve
Trades: 0
Looks like I learned something new today too.
Steve-Hostirian is offline
Reply With Quote
View Public Profile
 
Old 11-24-2009, 07:36 PM Re: You learn something new every day
Banned

Posts: 315
Name: Doug
Trades: 1
perhaps it is used similar to the .. when used in ../images/garbage.jpg
or ./images/garbage.jpg

To me though it would only work on servers where the server recognizes it as a valid relevency....

Personally I always teach students to use full URL's.
http://www.website.com/ or https://www.website.com

I would wonder if the // creates a link that the browser recognizes.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 11-25-2009, 03:57 PM Re: You learn something new every day
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by vangogh View Post
Brian this is when adding a link to a web page, not typing into the address bar of your browser. Different scenario.
Actually, typing it into the address bar works just fine for me on FF 3.5, but if used on a link inside a local file, it will be relative to the file system.
Quote:
Originally Posted by marketingman100 View Post
To me though it would only work on servers where the server recognizes it as a valid relevency....

Personally I always teach students to use full URL's.
http://www.website.com/ or https://www.website.com

I would wonder if the // creates a link that the browser recognizes.
From what I understand, this doesn't have anything to do with the server, only the browser, or rather, any client which uses HTTP protocols to access resources. According to the article, this is how the writer links to external resources when using https, to avoid generating warnings about mixing secure and insecure content. This works because it is technically a relative link, and all relative links on an HTTPS page use the HTTPS protocol. Of course this will only work if the external resource has a valid certificate, but I think most CDN systems have one.

This behavior is described in RFC 1808, way back when HTML 2 was specified: http://www.w3.org/Addressing/rfc1808.txt
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by vangogh; 12-07-2009 at 07:27 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-07-2009, 12:53 PM Re: You learn something new every day
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by vangogh View Post
Brian this is when adding a link to a web page, not typing into the address bar of your browser. Difference scenario.
ah, ok...Cool it does work
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 12-07-2009, 04:33 PM Re: You learn something new every day
-webmaster-'s Avatar
Skilled Talker

Posts: 80
Name: Chrisy
Trades: 0
Wow... that's cool stuff! I didn't know. Thx!
__________________
sru sru sru
-webmaster- is offline
Reply With Quote
View Public Profile
 
Old 12-07-2009, 07:29 PM Re: You learn something new every day
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Quote:
Originally Posted by wayfarer07
yping it into the address bar works just fine for me on FF 3.5
Didn't work for me on FF 3.5. Looked for something relative to my filesystem. What OS are you on? I wonder if that has something to do with it.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 12-07-2009, 11:10 PM Re: You learn something new every day
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by vangogh View Post
Didn't work for me on FF 3.5. Looked for something relative to my filesystem. What OS are you on? I wonder if that has something to do with it.
I have Windows Vista on this computer.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-09-2009, 01:12 PM Re: You learn something new every day
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Oddly, it appears my browser is simply set to remove slashes at the beginning of anything typed into the address bar.
Code:
//////////////////////////////////////////////////////google.com
and also
Code:
/google.com
when typed into the address bar both resulted in being directed to google. This of course won't happen when using an actual link in the HTML document.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-09-2009, 01:22 PM Re: You learn something new every day
frih's Avatar
Super Talker

Posts: 139
Name: abhi
Location: http://www.techbusy.org/
Trades: 0
Wow, new for me. I think it is done to avoid link formulation.
__________________

Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
frih is offline
Reply With Quote
View Public Profile Visit frih's homepage!
 
Old 12-10-2009, 03:09 AM Re: You learn something new every day
Novice Talker

Posts: 6
Name: New gadgets
Trades: 0
yes! i really thank for u. really i feel that some one i got new. thanks again..
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
davidhoward is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to You learn something new every day
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47508 seconds with 12 queries