
I would like to push a request for supporting a per application favicon via the application bootstrapping code in the echo core. NextApp can use its icon (or any other) as default, and provide developers the ability to over-ride it with their preferred one. It is fairly easy to achieve the same if your application runs on a virtual server, but it is still nicer to have it controllable on an application basis.
The problem with favicon is,
The problem with favicon is, that the major player in the browser market looks for the file at location http://mysite.com/favicon.ico (If at all)
And since echo normally does not handle this URL, there is no way for us to give IE a favicon.
For all other browser, of course, they look at the specified location.
<link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon">
<link rel="icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon">
Would be nice to at least be able to specify it for all the others. (http://en.wikipedia.org/wiki/Favicon)
André
Simple hack works
I added some code to WindowHtmlService and it works across Safari/Chrome/FireFox/Stainless/Opera and IE8. Currently it is hard-coded to look for a "favicon.ico" in the root of the web application, but it can easily be made more robust.
headElement.appendChild(linkElement); } } + + // Patch for adding bookmarks favorite icon + Element icoElement = document.createElement("link"); + if (userAgent != null && userAgent.contains( "MSIE" ) ) { + icoElement.setAttribute("rel", "SHORTCUT ICON"); + } else { + icoElement.setAttribute("rel", "icon"); + icoElement.setAttribute("type", "image/vnd.microsoft.icon"); + } + icoElement.setAttribute("href", "favicon.ico"); + headElement.appendChild(icoElement); Element bodyElement = document.createElement("body"); bodyElement.setAttribute("id", "body");