favicon

Adding favicon through a http header

落爺英雄遲暮 提交于 2019-12-22 04:33:05
问题 Let's assume that I want to add a favicon on a dynamically generated page (specifically an ADF Faces page, but this is irrelevant). I can't modify a tag of my resulted html. So I try to add a http-header in servlet header. I want my header to be identical to html head element: <link rel="shortcut icon" href="http://foo.com/favicon.ico"> I'm adding it this way: httpResponse.addHeader("Link", "<http://foo.com/favicon.ico>; rel=\"shortcut icon\""); And in my browser I see this header in response

Adding favicon through a http header

邮差的信 提交于 2019-12-22 04:33:03
问题 Let's assume that I want to add a favicon on a dynamically generated page (specifically an ADF Faces page, but this is irrelevant). I can't modify a tag of my resulted html. So I try to add a http-header in servlet header. I want my header to be identical to html head element: <link rel="shortcut icon" href="http://foo.com/favicon.ico"> I'm adding it this way: httpResponse.addHeader("Link", "<http://foo.com/favicon.ico>; rel=\"shortcut icon\""); And in my browser I see this header in response

C# WPF - Application Icon + ShowInTaskbar = False

老子叫甜甜 提交于 2019-12-22 04:28:08
问题 I've created a custom layered WPF window with the following properties: AllowsTransparency = True ShowInTaskbar = False Background = Transparent Topmost = True Icon = "Icon.ico" I've added Icon.ico under "Project Properties"->"Application" tab. The icon displays as the default WPF window icon if ShowInTaskBar is false, but displays correctly if ShowInTaskbar is true. We want the icon to show up correctly in the Alt+Tab menu. How can we achieve this and have ShowInTaskbar = False? 回答1: There

Why is my `favicon.ico` request not working?

房东的猫 提交于 2019-12-22 01:28:05
问题 I have a favicon.ico on my site. In the HTML, I link to its location... <link rel="icon" href="/assets/images/layout/favicon.ico" type="image/x-icon" /> I also have this in my .htaccess . # Redirect /favicon.ico requests RewriteCond %{REQUEST_URI} !^assets/images/layout/favicon\.ico [NC] RewriteCond %{REQUEST_URI} ^favicon\.(gif|ico|png|jpe?g)$ [NC] RewriteRule ^(.*)$ assets/images/layout/favicon.ico [R=301,L] ...to redirect the /favicon.ico requests to a different location. For some reason,

Trouble on retrieving 'favicon.ico' images using AJAX HTTP requests

拈花ヽ惹草 提交于 2019-12-22 00:26:08
问题 I am using Ruby on Rails v3.0.9 and jQuery 1.6. I am trying to retrieve and display the favicon image from some web sites. For instance, in order to do that for a single web site I am using the following code: $jQ.ajax({ type: 'GET', url: 'http://www.facebook.com/favicon.ico', data: '', error: function(jqXHR, textStatus, errorThrown) { $jQ('#facebook_favicon').replaceWith('ERROR'); }, success: function(data, textStatus, jqXHR) { $jQ('#facebook_favicon').replaceWith("<img width='16px' height=

Jquery: Get favicon with full path

徘徊边缘 提交于 2019-12-21 19:43:28
问题 I want to grab the link of a favicon from a website with Jquery. I simply use $('link[rel="shortcut icon"]').attr('href'); and it works fine. But... I do not always have a complete path. For example I can have something like http://mywebsite.com/myicon.ico or only a relative path /myicon.ico I would like to always have the full path, even if the Url is coded as a relative path. Is there a simple solution to this? I use this as a Content Script in a Google Chrome Extension. 回答1: if you use the

Jquery: Get favicon with full path

早过忘川 提交于 2019-12-21 19:42:03
问题 I want to grab the link of a favicon from a website with Jquery. I simply use $('link[rel="shortcut icon"]').attr('href'); and it works fine. But... I do not always have a complete path. For example I can have something like http://mywebsite.com/myicon.ico or only a relative path /myicon.ico I would like to always have the full path, even if the Url is coded as a relative path. Is there a simple solution to this? I use this as a Content Script in a Google Chrome Extension. 回答1: if you use the

How can I add a picture in address bar of the browser when my page is browsed?

柔情痞子 提交于 2019-12-21 12:25:12
问题 Duplicate: Image icon beside the site URL What is currently the best way to get a favicon to display in all browsers that support Favicons? Preferred way to use favicons? I want to add my logo in the address bar of the browser, whenever it is browsed. How do I make a favicon? 回答1: You need a favicon - this is a 16x16 image in .ico format stored as favicon.ico in the root directory your site. Some browsers do support other formats too. A newer, more standards based approach is to include

How to get larger favicon from Google's api?

天大地大妈咪最大 提交于 2019-12-21 09:03:13
问题 Is it possible to get a larger version of the favicon from the Google's api or from somewhere else? This is the url. http://www.google.com/s2/favicons?domain=google.com I searched for an alternative api on ProgrammableWeb and Google but many of them don't exist anymore and the one I found that actually seems to work isn't free. (http://grabicon.com/) I need the icon for a VB.NET project that has a list of websites with icons. But 16x16 icons are too small for that. 回答1: Favicons are specified

How to get larger favicon from Google's api?

浪尽此生 提交于 2019-12-21 09:03:08
问题 Is it possible to get a larger version of the favicon from the Google's api or from somewhere else? This is the url. http://www.google.com/s2/favicons?domain=google.com I searched for an alternative api on ProgrammableWeb and Google but many of them don't exist anymore and the one I found that actually seems to work isn't free. (http://grabicon.com/) I need the icon for a VB.NET project that has a list of websites with icons. But 16x16 icons are too small for that. 回答1: Favicons are specified