jQuery UI Widgets Forums Getting Started Runtime Error

This topic contains 6 replies, has 2 voices, and was last updated by  Dimitar 9 years, 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Runtime Error #61290

    Sandy
    Participant

    Hi
    I am geeting an error
    “0x800a138f – Microsoft JScript runtime error: Unable to get value of the property ‘jqxWidget’: object is null or undefined”. Could you please tell the possible causes for these error??

    Runtime Error #61292

    Dimitar
    Participant

    Hello Sandy,

    Please provide us with a sample code which demonstrates the reported issue.

    Best Regards,
    Dimitar

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

    Runtime Error #61294

    Sandy
    Participant

    <script src=”~/Scripts/jquery.min.js”></script>

    <link href=”~/Scripts/Vendor/Others/jqx.base.css” rel=”stylesheet” />
    <script src=”~/Scripts/Vendor/JQControls/jqxwindow.js”></script>
    <script type=”text/javascript”>
    $(document).ready(function () {
    $(“#Add_New”).jqxButton({ width: ‘150’ });
    $(“#Add_New”).on(‘click’, function () {
    alert(“Button Clicked”) ;
    });
    });
    <body>
    <input type=”button” id=”Add_New” value=”Add”/>
    </body>

    Runtime Error #61296

    Dimitar
    Participant

    Hi Sandy,

    You also need to add references to the files jqxcore.js and jqxbuttons.js. Please refer to the jqxButton guide Getting Started to see how to correctly initialize a jqxButton on your page.

    Best Regards,
    Dimitar

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

    Runtime Error #61297

    Sandy
    Participant

    after adding both the files I’m getting the same error again

    Runtime Error #61298

    Sandy
    Participant

    Now the error is Microsoft JScript runtime error: Unable to get value of the property ‘prototype’: object is null or undefined

    Runtime Error #61301

    Dimitar
    Participant

    Hi Sandy,

    Here is an example that works perfectly fine on our side:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
        <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
        <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $("#Add_New").jqxButton({ width: '150' });
                $("#Add_New").on('click', function () {
                    alert("Button Clicked");
                });
            });
        </script>
    </head>
    <body class='default'>
        <input type="button" id="Add_New" value="Add" />
    </body>
    </html>

    Please make sure you use the latest version of jQWidgets (3.5.0), too.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.