Skip to content Skip to sidebar Skip to footer

Javascript Runtime Error: Object Doesn't Support Property Or Method 'jqgrid'

I get the exception - 'JavaScript runtime error: Object doesn't support property or method 'jqGrid'' when I move below block from maincontent of content page to header section of

Solution 1:

You have to wait until DOM finishes loading. Then you can apply your scripts. Since, in your master page, you are using the script at the bottom, since the parser uses top down approach, it executes the script, after the body is completed loading.

So, if you do want to put in head section, ensure that all your script is inside document.ready() function

Also , know that it is always a best practice to put all your scripts at bottom rather than at the header.

This is a good performance indicator. Also it avoids the usage of ready function

Hope this helps..

Post a Comment for "Javascript Runtime Error: Object Doesn't Support Property Or Method 'jqgrid'"