Intellisense for Javascript - not correct in Visual Studio 2008/2010
Posted
by Finglas
on Stack Overflow
See other posts from Stack Overflow
or by Finglas
Published on 2010-05-17T20:27:43Z
Indexed on
2010/05/17
20:40 UTC
Read the original article
Hit count: 240
var obj = document.getElementById("header");
Given the above code snippet, I should be able to wire event handlers. For example, I can wire onMouseDown
to the mouse down event, the issue is that Visual Studio does not display this in the Intellisense.
I'm trying something such as:
obj.onmousedown = mousestatus;
Based on a book I'm reading, the code is valid (at least it works) therefore I see no reason why Intellisense is not picking it up.
I've tried this on both a standalone Javascript file, as well as an MVC project to no luck.
Is there anything I'm doing wrong - or is there a way to resolve this?
© Stack Overflow or respective owner