locked
What attribute of <body/> would it make scrollable in JavaScript?

    Question

  • I have a page (Html) full of stuff. I want to make it scrollable to see all the content, SLOWLY. I can't use Scroll Viewer in JavaScript(I assume). What attributes can I use to make it happen?

    Jayaram Krishnaswamy

    Thursday, June 12, 2014 4:04 AM

Answers

  • Hi Jayaram,

    Did you look at the available controls list? Check out the Layout controls for more advanced scrolling scenarios (including scroll view).

    --Rob

    • Marked as answer by jkrishnaswamy Friday, June 13, 2014 8:25 PM
    Friday, June 13, 2014 1:54 AM
    Owner

All replies

  • This is a pure javascript question, and here's one answer:

    http://www.mediacollege.com/internet/javascript/page/scroll.html


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, June 12, 2014 1:35 PM
    Moderator
  • I see this has been escalated. However in keeping up with the spirit that apps can be developed using any of HTML, C#, C++, and VB.NET, a comparable element to 'Scroll Viewer' should have been developed. May be it is there, but I am not aware. If any one comes across I would like to know.

    Jayaram Krishnaswamy

    Friday, June 13, 2014 1:31 AM
  • Hi Jayaram,

    Did you look at the available controls list? Check out the Layout controls for more advanced scrolling scenarios (including scroll view).

    --Rob

    • Marked as answer by jkrishnaswamy Friday, June 13, 2014 8:25 PM
    Friday, June 13, 2014 1:54 AM
    Owner
  • Thanks.

    <divstyle="overflow:scroll;"></div> seems to do it. Is there a way to keep the scroll bars invisible but effective? 


    Jayaram Krishnaswamy

    Friday, June 13, 2014 8:25 PM