Microsoft JScript runtime error in Visual studio 2010
Posted
by anirudha
on Geeks with Blogs
See other posts from Geeks with Blogs
or by anirudha
Published on Tue, 08 Feb 2011 15:01:59 GMT
Indexed on
2011/02/08
15:26 UTC
Read the original article
Hit count: 357
There is many tool exist to debug JavaScript visual studio , firebug and some other great plugin are one of them. here I show you solution for
Microsoft JScript runtime error: Object doesn't support this property or method
if you search on Google for how to debug Javascript in Visual studio. all of them told you to follow this instruction :-
go to Internet option in IE > advanced tab > Browsing section >
uhcheck the both option
disable script debugging for IE (internet explorer)
disable script debugging (others).
that’s the information you read are outdate or not true these days. in visual studio you can play with JavaScript debugging even these option is check or unchecked. off-course you can try these step in express version of visual studio.
I found a little problem that my code [based on jQuery plugin] try to call some function. some of them not implement in browser so they call other so that’s fine and work in every browser.
when visual studio found some function they trying to call and not implemented in browser I use to debug they tell me
Microsoft JScript runtime error: Object doesn't support this property or method
they tell me again whenever I put refresh [f5] in browser. so the thing they do you never like that. see error window first whenever code is not buggy and see everytime before see the page you want to see.
this behavior harsh you. there is no problem whenever you not commonly used IE but whenever you really want to debugging you got some pain too from the behavior of this.
well I have some patch for that if you really like the debugging in Visual studio with IE.
so if you sure that code is not buggy or you really not want to see that’s window here is trick.
when you debug the JavaScript in IE choose the compact mode and they never force you to see window first who tell the thing you not want to see.
How to do that
for reliefs from this pain in visual studio after debug the project or website IE gone automatically launch.
go to Developer tool by pressing f12 > you see window something like this:-
by the way they give you document mode IE 7 as default or browser mode based on your settings. first thing is that you need to set the compact view [any ] in browser mode.
and next time the error window never come again who tell you
Microsoft JScript runtime error: Object doesn't support this property or method
© Geeks with Blogs or respective owner