Error: Object doesn't support this action
I'm doing Live Contacts Control intro from: http://dev.live.com/contactscontrol/v0.2/getstarted.aspx
When I refresh the page I see the control and logo for a moment then it shows an error: "Error: Object doesn't support this action"
How can I debug this?
Answers
richard.bailey wrote: This is using IE7 and Visual Web Developer Express.
I did have script debugging turned on (I think that step was in the instructions I was following.
Ok. To force the browser to bring up the debugger, select View: Script Debugger: Break at Next Statement. Then do something with the web page that will cause JavaScript code to execute, such as clicking a button or F5 refreshing the page. The next thing you should see is a popup dialog asking which debugger you want to use to debug the script.
richard.bailey wrote: One web developer I spoke with though that script debugging did not work with JS code.
Last time I checked, JS code is script. ;> It's not always obvious how to activate the silly debugger, though.
Is there any tutorial out there for learning debugging techniques of web based code?
It is inevitable that my blog will become such a reference. I have a lot of rants pending. ;>
-Danny
All Replies
First, which browser are you using?
If you're using Firefox 1.5, you'll need to get the Venkman plugin to debug JavaScript in Firefox.
If you're using IE6 or IE7, you'll need to enable script debugging in the browser (Tools: Internet Options: Advanced, uncheck both "Disable script debugging" options), and possibly add a script debugger (I can't recall if the script debugger is already there or not). If you have Visual Studio installed, you're done, as it serves as a script debugger.
If you're using Opera, you'll need to use a different browser. Opera doesn't have a script debugger.
-Danny
Hi Danny,
Sorry for my lame repro details.
This is using IE7 and Visual Web Developer Express.
I did have script debugging turned on (I think that step was in the instructions I was following.
One web developer I spoke with though that script debugging did not work with JS code.
Thanks for the help and feedback. This is not blocking any feature development just my personal leisure learning and playtime.
Is there any tutorial out there for learning debugging techniques of web based code?
Richard - msft - My Blog(public)
richard.bailey wrote: This is using IE7 and Visual Web Developer Express.
I did have script debugging turned on (I think that step was in the instructions I was following.
Ok. To force the browser to bring up the debugger, select View: Script Debugger: Break at Next Statement. Then do something with the web page that will cause JavaScript code to execute, such as clicking a button or F5 refreshing the page. The next thing you should see is a popup dialog asking which debugger you want to use to debug the script.
richard.bailey wrote: One web developer I spoke with though that script debugging did not work with JS code.
Last time I checked, JS code is script. ;> It's not always obvious how to activate the silly debugger, though.
Is there any tutorial out there for learning debugging techniques of web based code?
It is inevitable that my blog will become such a reference. I have a lot of rants pending. ;>
-Danny
- I believe this article will help you with the problem:
http://capitalhead.com/articles/object-doesn't-support-this-property-or-method.aspx

