The "Favorite" icon on Instructables.com doesn't load. Firefox v13.0.1. It does work in Chrome v20.0.1132.57 m
When you are logged in at instructables.com, each article has a heart icon with 'Favorite" next to it. It should be between the Print PDF icon and the Email icon.
When you click on it, it changes to 'Un-fav". I've disabled AdBlock and NoScript for instructables.com.
This is the code on the page that should display it: <script class="tier2" type="text/deferscript">
new Favoriter($("#" + "favoriterElement0"), { entryId:'EXKGZJ0FPQLEOV9', isFavorite:false,alreadyFavoritedLink:true,notFavoritedLink:true }); </script>
All Replies (6)
Do you see the word Favorite but not the heart icon, or is the entire favorite-ing function missing? I will assume it's just the image.
I noticed the button's file name is similar to "favicon": fav-icon.png
If you have any add-ons that block favicons, perhaps that is interfering with this image?
More generally, when you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
1. Clear Firefox's Cache
orange Firefox button or Tools menu > Options > Advanced
On the Network mini-tab > Offline Storage : "Clear Now"
2. If needed, delete the site's cookies here (this will log you out)
While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
Then try reloading the page. Does that help?
I don't see the image or the word 'Favorite'. The entire favorite-ing function is missing.
I don't think I have any add-ons that would block favicons.
I had already cleared the cache but not the cookies. When I delete the cookies for instructables.com I see the Favorite option again.
However, as soon as I login, it disappears. Weird.
Thank you very much for your help. -Todd
I don't have a login so didn't know about that. If you select across that area with the mouse, right-click, and View Selection Source, do you see anything related to Favorites just after the PDF stuff? If so, perhaps there is some wayward style rule hiding it.
I also didn't notice the login thing until I logged myself out.
If I select that area and View Selection Source, there is a brief mention of Favorites. Print PDF</a></span><span id="favoriterElement0"></span><a href="mailto:?
Wait that's weird, when I Preview Reply before clicking Post Reply, the preview takes out the part that mentions Favorites. Between the Print PDF and Mailto sections above should be: span id=favoriterElement0 /span
Why is this page removing that part of my post?
If I View Selection Source while logged out, it's there but different code because the 'Favorite' icon is based on my user profile.
If I right-click the page and select 'View Page Source' I can find it. I wonder if it has something to do with the "type="text/deferscript". The 'Favorite' part does appear to load after everything else. But the Star rating on the article also uses it and that load ok.
type="text/deferscript"> new Favoriter($("#" + "favoriterElement0"), { entryId:'E96C8J0H2VARRLJ', isFavorite:false,alreadyFavoritedLink:true,notFavoritedLink:true
-Todd
Muudetud
Sorry about the forum. It assumes that an open caret (<) is part of an HTML tag and filters it as such. To post the script, you might need to change those to left brackets ([) or left braces ({).
(I am curious about the type="text/deferscript" since that is nonstandard. From what I can see, some script at Instructables converts these to regular script tags at some point.)
Gotcha, thanks.
I did find this when searching for text/deferscript which might be helpful:
http://www.sitepoint.com/forums/showthread.php?689168-Defering-JavaScript-Execution http://www.sitepoint.com/forums/showthread.php?689168-Defering-JavaScript-Execution
-Todd