Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > The safari url bar does this...

The safari url bar does this...
Thread Tools
Grizzled Veteran
Join Date: Jun 2002
Status: Offline
Reply With Quote
Jul 7, 2003, 03:59 PM
 
For example, in the url bar I type in yahoo.com, when I click enter, it auto-adds http://. I'm just wondering how this is achieved.
Thanks!
Oliver
     
Forum Regular
Join Date: Jul 2001
Location: Québec, Canada
Status: Offline
Reply With Quote
Jul 7, 2003, 04:52 PM
 
Rather simple. It first check if there is a protocol identifier like "http:" or "ftp:" or "file:" or "telnet:" or "anything:" and if not it adds "http://" by default before trying to reach the site. :-)

Even better, if a site does not work and does not have the "www." part at the start of the domain name it automatically try by adding it. Now that's really nice.
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2