jQuery UI Widgets › Forums › Getting Started › Runtime Error
Tagged: Button, error, getting started, initialize, jqxButton, jqxwidget, reference, Runtime Error, script
This topic contains 6 replies, has 2 voices, and was last updated by Dimitar 9 years, 11 months ago.
-
AuthorRuntime Error Posts
-
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??Hello Sandy,
Please provide us with a sample code which demonstrates the reported issue.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/<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>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,
DimitarjQWidgets team
http://www.jqwidgets.com/after adding both the files I’m getting the same error again
Now the error is Microsoft JScript runtime error: Unable to get value of the property ‘prototype’: object is null or undefined
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,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.