Larry Brister
asked on
HTTPS jquery doesn't work
I am using the code below which works fine on a regular .Net IIS Web Site.
However... on my HTTPS it doesn't work at all.
However... on my HTTPS it doesn't work at all.
$(window).load(function () {
if (document.location.href.indexOf('verifinity') > -1) {
$('head').append('<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />');
} else {
$('head').append('<link href="favicon2.ico" rel="shortcut icon" type="image/x-icon" />');
}});
ASKER
Julian,
Yes... I can see it using the direct url.
And yes... all browsers do look for the favicon...
My issue is that I want my site to be "branded" for different customers and they need the ability to add their own favicon.
You can see in the script I have in the question that if a "customer" string is in the url it uses a particular icon.
Otherwise it uses the default
Yes... I can see it using the direct url.
And yes... all browsers do look for the favicon...
My issue is that I want my site to be "branded" for different customers and they need the ability to add their own favicon.
You can see in the script I have in the question that if a "customer" string is in the url it uses a particular icon.
Otherwise it uses the default
you should use your web server to do that and not javascript.
what is "verifinity"?
what is "verifinity"?
also, regarding this question you also say it doesn't work in a regular page AND with https, right?
ASKER
leakim971
That is correct
That is correct
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys... the append was not happening
https://server/favicon2.ico
Also, don't browsers now automatically look for a favicon file?