bug related to operating a tape
My ISP aceweb.com on its page start.aceweb.com has a vertical tape displaying headers of various news articles. When the header is clicked brouser creates new tab or window displaying the article. But when Firefox is used sometimes the article is displayed in the tape control and even after I create the new tab from, the image stay in the control and I can not restore tape.
Усі відповіді (7)
That page uses a script to add a "target" to the link so it loads in a different window. However, the script bombs out in Firefox on the first line, so it never redirects the link away from the small frame.
document.getElementById('marq').stop(); var oAnchors = document.getElementsByTagName("a"); //alert(oAnchors.length); for(var i=0; i< oAnchors.length; i++) { if(oAnchors[i].href.search('datafile') == -1 ){ oAnchors[i].target = "new"; //alert(oAnchors[i].href); } }
You could report this to the site's webmaster with a link back to this thread. Or you could hold the Ctrl key to open the link in a new tab...
And... to restore the page, you need to do a "full" reload. Either hold shift and click the reload button, or Ctrl+F5, or Ctrl+Shift+r.
Змінено
It works without any problem when other brousers are used, so I think firefox has to be fixed. As about the suggestion to restore the page do not you think it is just more simple to use another browser?
It's your choice what browser you use. I'm saying the site's script does not run as designed in Firefox. Without determining the specific reason the first line of the script is failing, it's impossible to say why, and therefore no way to determine whether it is a "bug" in Firefox or a "bug" in the script.
(Also, bear in mind that the scrolling marquee element was invented by IE and has not been adopted as a standard. Therefore, there may be differences between browsers in how it works.)
Thank you for expresing that it is "impossible to say why, and therefore no way to determine whether it is a "bug" in Firefox or a "bug" in the script." It so happened that I got up my carrer 2 times up (first time in the former USSR) exactly when the guru failed and said that it is impossible to do. But as the employers needed to do, I got my chances and did the "imposible to do" projects. Now I am very busy, but if I get some spare time, I will use the opportunity.
I think you misread my post: if you don't determine why the .stop() in that script isn't working, then you can't determine whether it is a flaw in the script or in Firefox.
The reason it's mysterious is that Firefox does support the .stop() and .start() methods -- they are used whenever you mouse over the scroller to stop it, and then to resume when you move your mouse away. For some reason, though, perhaps it's a timing problem, it doesn't work when the page first loads.
Good luck in your research, or in persuading the site to look into it.
I do "read" your post, and you just have confirmed it by using "The reason it's mysterious is ...". You know my long time motto is "Magic does not exists" and always proved it.
I asked the tech support of the site and instantly got the answer: when clicking keep shift key down. The new window will be opened. So there is not mystery as always and at this case it is the trivial solution.