This topic contains 1 reply, has 2 voices, and was last updated by  Nadezhda 5 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • error recreating scrollview #68045

    rtessler
    Participant

    create the scrollview, then create it again. contents is wrong
    see code below:

    <!doctype html>
    <html>
    <body>

    <head>

    <style>

    .my-scrollview {
    color: #fff;
    }

    </style>

    <link rel=”stylesheet” type=”text/css” href=”../js/libs/jqwidgets-ver3.6.0/jqwidgets/styles/jqx.base.css” >

    <script src=”../js/libs/jquery-1.11.1.min.js” ></script>

    <script src=”../js/libs/jqwidgets-ver3.6.0/jqwidgets/jqxcore.js”></script>
    <script src=”../js/libs/jqwidgets-ver3.6.0/jqwidgets/jqxscrollview.js”></script>

    </head>

    <body>

    <div class=”my-scrollview”></div>

    create scroll view

    <br>

    pages to create:

    <br>

    <input class=”pageno” value=”10″/>

    <script>

    $(document).ready(function() {

    function createScrollView(pageno)
    {
    var str = “”;

    for (var i = 0; i < pageno; i++)
    str += “<div>this is page ” + i + “</div>”;

    $(“.my-scrollview”).html(str);

    var o = $(“.my-scrollview”).jqxScrollView({
    width: 500,
    height: 200,
    buttonsOffset: [0, 10],
    moveThreshold: 0.2,
    slideShow: true,
    slideDuration: 3000,
    showButtons: true
    });
    }

    $(“.create-scroll-view”).click(function(e) {

    var pageno = $(“.pageno”).val();

    createScrollView(pageno);
    });
    });

    </script>

    </body>
    </html>

    error recreating scrollview #68067

    Nadezhda
    Participant

    Hello rtessler,

    In the above code you are using class selector create-scroll-view which is not created in your html. You are also using invalid html structure.
    Please, take out the double bodytag from your code. What do you want to do the following line <input class="pageno" value="10"/>?

    Best Regards,
    Nadezhda

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.