Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

IFrame Scroller

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

  • owen1owen1 Posts: 76Member
    : 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?
    :
    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

  • R.W.B.R.W.B. Posts: 6Member
    : : 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?
    : :
    : 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.
  • R.W.B.R.W.B. Posts: 6Member
    : : : 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?
    : : :
    : : 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?


  • owen1owen1 Posts: 76Member

    :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

  • R.W.B.R.W.B. Posts: 6Member
    :
    : :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)
    ************************************

  • owen1owen1 Posts: 76Member
    :function scrolltest(){
    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

  • R.W.B.R.W.B. Posts: 6Member
    : :function scrolltest(){
    : 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?

  • R.W.B.R.W.B. Posts: 6Member
    : : :function scrolltest(){
    : : 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!

  • shelby72shelby72 Posts: 1Member
    : :
    : : :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?

Sign In or Register to comment.