Any help on why when a IFrame loads on a website that sometimes it hesitates or gets stuck and won't scroll? This problem does not happen every time the page loads. I can not regenerate this problem, it happens when it wants to. Any suggestions or solutions?
Comments
:
check if it only happens on your machine. most likely the browser is loading the page. nothing to worry about really. probably you machine is slow.
[hr]
http://owensoft.20m.com
check out my current projects: http://www.owensoft.net
: :
: check if it only happens on your machine. most likely the browser is loading the page. nothing to worry about really. probably you machine is slow.
: [hr]
: http://owensoft.20m.com
: check out my current projects: http://www.owensoft.net
:
:
It has happened on multiple machines. But as I mentioned, it does it whenever it wants to! There's not one thing I can pin point it to. It happens about 1 out every 8 times.
: : :
: : check if it only happens on your machine. most likely the browser is loading the page. nothing to worry about really. probably you machine is slow.
: : [hr]
: : http://owensoft.20m.com
: : check out my current projects: http://www.owensoft.net
: :
: :
: It has happened on multiple machines. But as I mentioned, it does it whenever it wants to! There's not one thing I can pin point it to. It happens about 1 out every 8 times. Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?
:Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?
you should have said so in the first place, might be a bug in the scroller code, you should check the code again - if you wrote it.
[hr]
http://owensoft.20m.com
check out my current projects: http://www.owensoft.net
: :Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?
:
:
: you should have said so in the first place, might be a bug in the scroller code, you should check the code again - if you wrote it.
: [hr]
: http://owensoft.20m.com
: check out my current projects: http://www.owensoft.net
:
: Here is the code that makes it scroll, it is from dynamicdrive.com. I can not point anything in the code that looks odd.
***************************
// script by Dynamicdrive.com
//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2
function initialize(){
marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top=5
thelength=dataobj.offsetHeight
scrolltest()
}
function scrolltest(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)
************************************
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top=5
setTimeout("scrolltest()",50)
}
why is the "scrolltest()" setting it's own time out? try calling setTimeout("scrolltest()",50) outside of the "scrolltest()" function. Probably the scrolltest() function is continously set a time out for it self. otherwise stop scrolling the window - if you don't like it.
[hr]
http://owensoft.20m.com
check out my current projects: http://www.owensoft.net
: dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
: if (parseInt(dataobj.style.top)<thelength*(-1))
: dataobj.style.top=5
: setTimeout("scrolltest()",50)
: }
:
: why is the "scrolltest()" setting it's own time out? try calling setTimeout("scrolltest()",50) outside of the "scrolltest()" function. Probably the scrolltest() function is continously set a time out for it self. otherwise stop scrolling the window - if you don't like it.
: [hr]
: http://owensoft.20m.com
: check out my current projects: http://www.owensoft.net
:
: If it was continously set then it would happen 100% of the time. I need the IFrame to scroll because of the mass information to be displayed. Have you ever heard of these IFrame bugs I am having? By taking the setTimeout("scrolltest()",50) outside the function I get a run time error of dataobj. Does this IFrame need to load before or after anything else?
: : dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
: : if (parseInt(dataobj.style.top)<thelength*(-1))
: : dataobj.style.top=5
: : setTimeout("scrolltest()",50)
: : }
: :
: : why is the "scrolltest()" setting it's own time out? try calling setTimeout("scrolltest()",50) outside of the "scrolltest()" function. Probably the scrolltest() function is continously set a time out for it self. otherwise stop scrolling the window - if you don't like it.
: : [hr]
: : http://owensoft.20m.com
: : check out my current projects: http://www.owensoft.net
: :
: : If it was continously set then it would happen 100% of the time. I need the IFrame to scroll because of the mass information to be displayed. Have you ever heard of these IFrame bugs I am having? By taking the setTimeout("scrolltest()",50) outside the function I get a run time error of dataobj. Does this IFrame need to load before or after anything else?
:
: Never mind I think I got it fixed, Thanks for your help!
: : :Also, it is a automatic scroller that starts when the page is loaded and stops when the mouse hovers over it. Does it matter where it's loading in the script?
: :
: :
: : you should have said so in the first place, might be a bug in the scroller code, you should check the code again - if you wrote it.
: : [hr]
: : http://owensoft.20m.com
: : check out my current projects: http://www.owensoft.net
: :
: : Here is the code that makes it scroll, it is from dynamicdrive.com. I can not point anything in the code that looks odd.
: ***************************
:
:
:
:
:
:
:
:
:
:
: // script by Dynamicdrive.com
:
: //Specify speed of scroll. Larger=faster (ie: 5)
: var scrollspeed=cache=2
:
: function initialize(){
: marqueeheight=document.all? parent.document.all.datamain.height :
: parent.document.getElementById("datamain").getAttribute("height")
: dataobj=document.all? document.all.datacontainer :
: document.getElementById("datacontainer")
: dataobj.style.top=5
: thelength=dataobj.offsetHeight
: scrolltest()
: }
:
: function scrolltest(){
: dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
: if (parseInt(dataobj.style.top)
: ************************************
:
:
I'm having the same problem with the scrolling not working in Explorer. I get the following error:
I have installed this contribution and and am having the following errors with IE:
It displays the text in the box, but doesnt scroll.
Line 24
Char : 1
Error : Access is Denied
Code : 0
URL: ........../mainnews.php
How do I fix this?