"Unexpected call to method or property access " error
Hi, I am pretty new to Jquery. And I got this error with IE 11. I attached the code causing the error, but I didn't see anything wrong since I used like this before. And I tried Chrome which gave no error but no data. Basically, I am using script to get data though web service. And I believe the code on the backend is correct since I can get the data. Please help me out. Thanks
- <script type="text/javascript">
- (function () {
- PageConfig = {
- GetPositionDetails: HS.BaseController.PositionUrl + "GetPositionDetails"
- }
- HS.PositionListView = {
- init: function () {
- $("#btnSave").bind("click", function () {
- art.dialog.close();
- });
- },
- onPageLoad: function () {
- var config = {
- url: PageConfig.GetPositionDetails,
- data: { Code: art.dialog.data("Code") },
- success: function (data) {
- var obj = data.Data;
- $("#txtPosCode").html(obj.Code);
- }
- }
- HS.DataTransmission.getdata(config);
- }
- };
- HS.apply(HS.PositionListView, HS.PageBase);
- HS.PositionListView.load();
- })()
- </script>