Web Page ICO with Frames

I have a pretty standard frames setup with navigation in one frame controling content in a "Main" frame. I have index.html file (which contains the frameset definition) and includes the following to define the ICO file to display in the favorites, bookmarks, and browser title bar:

<HEAD>
...
<LINK REL="SHORTCUT ICON" HREF="graphics/fgnet_logo.ico">
...
</HEAD>


The problem I have is that as soon as I use the navigation frame to change the content of the "Main" frame the ICO is no longer displayed in the browser title bar. I've tried placing the above <LINK REL = ...> line into the header of the different pages that get loaded into the "Main" frame but the ICO still never shows up. Returning to the index.html file does bring back the correct ICO display.

How do I keep the ICO displayed in the browser title regardless of what pages are displayed in the different frames?

Thanks!
skwermAsked:
Who is Participating?
 
neesterCommented:
That didn't make too much sense did it?
What I meant was...

I think it is quite possible that the FAVICON is determined by the LAST page that actually loaded...
With your default index.html - it would load index.html last - well finish loading it last, becuse while loading index.html, it loads the other pages in between.
So when you navigate to another page,it would loose the link to the FAVICON.
So give it a shot, try and put the code on every page you load.
Test it by putting the code on 5 pages or so.
Clear your cache - this can be troublesome with FAVICONS...
And give it a test run....
0
 
knightEknightCommented:
0
 
skwermAuthor Commented:
I tried using the full path to the icon with no luck.

It seems weird to me that the browser would lose track of the ico file. The main (top) frame is still, technically, the index.html file. Only the content of one of the child frames is changing.

Thanks for the attempt. Any other ideas?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
neesterCommented:
So you are saying that your main file, index.html - the one which defines the frames... Has the LINK code?
I would have said thats perfect.
Perhaps try aadding that HEADER to every page you have, including the sidebar etc...

See if that helps.
If you have that already - try only having that code in the index.html file...
0
 
skwermAuthor Commented:
Should I be worried that you are stalking me, neester? You were the one that got my question yesterday over in the PHP section!  :-)

I'll try placing the link in the header of all my frame sources and see if that helps.

Thanks!  (Again!)
0
 
neesterCommented:
Haha skwerm :)
I rarely look at the person posting.
Just at the question... and the points...

But yeah.
I have a thing for you ;)
j/k obviously!!
:)


I have no idea why this could be the way it is.
Unless the last loaded page had the <link> code, whcih is what I think it might need...
0
 
neesterCommented:
Actually.
It might just be easier for you, to name the file: favicon.ico - and leave it in your ROOT directory.
that way you wont need to have the <link> code anywhere!!!
0
 
skwermAuthor Commented:
I can't use the "favicon.ico file in the root directory" method because:
  1) The current project doesn't run from the root of the domain name
  and
  2) I want to be able to have multiple ICOs


I'll be messing with this issue tonight and I'll let you know what (if anything) works.

Thanks!
0
 
neesterCommented:
OK great,
Have a shot skwerm!
:)
>>  I can't use the "favicon.ico file in the root directory" method...
Thats ok - i half thought you wouldnt be able to do it - because you would have to begin with...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.