Gustav Brock
Gustav at cactus.dk
Wed Jul 8 02:32:18 CDT 2009
Hi Jim Thanks. That makes two of us. Problem is that if you google on how to implement favicon, you most often see the relative url used. Strange. /gustav >>> accessd at shaw.ca 08-07-2009 05:43 >>> Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: <link rel="shortcut icon" href="http://icon.mywebsite.com/img/mywebsite/favicon.ico" /> Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew