Error updating jscript intellisense jquery min js

I'm trying to get j Query Intellisense working for my ASP. I can't help but think I'm missing something simple / dumb, but I can't see it.

IE5\HPBD331X\mqa.toolkit-fds90[2]..js: 'document.implementation' is null or not an object @ 602 If I remove the line that references the Map Quest API, the Intellisense works fine for j Query.

The problem of course when you do this is that by default VS has no way of knowing that this script is available within the user control - and so won't provide intellisense of it for you.

One way you can enable this is by adding the tag and provide intellisense for it within the user-control.

The annotated For example, we could use j Query to make a JSON based get request, and get intellisense for the method (hanging off of $.): As well as help/intellisense for the $JSON() method's parameters: The intellisense will continue to work if you nest a callback function within the method call.

For example, we might want to iterate over each JSON object returned from the server: And for each of the items we could execute another nested callback function: We could use the each callback function to dynamically append a new image to a list (the image src attribute will point to the URL of the returned JSON media image): And on each dynamically created image we could wire-up a click event handler so that when it is pressed it will disappear via an animation: Notice how the j Query intellisense works cleanly at each level of our code.

You can download VS 2008 SP1 and Visual Web Developer 2008 Express SP1 here.

Two weeks ago we shipped a patch that you can apply to VS 2008 SP1 and VWD 2008 Express SP1 that causes Visual Studio to check for the presence of an optional "-vsdoc.js" file when a Java Script library is referenced, and if present to use this to drive the Java Script intellisense engine. We've worked with the j Query team to put together a j file that provides help comments and support for Java Script intellisense on chained j Query selector methods.

A few months ago I tackled this problem and created a very basic vsdoc file for j Query UI.Jeff King from the Web Tools team wrote up a great post earlier this week that answers a number of common questions about how Java Script intellisense works with VS 2008. One trick he talks about which I'll show here is a technique you can use when you want to have Java Script intellisense work within user-controls/partials (files).Often you don't want to include a Java Script library reference within these files, and instead have this live on the master page or content page the user control is used within.Use vsdoc files instead - find one for your jquery version here: See this blog post announcing vsdoc based js intellisense support. name=jquery-1.3.2-vsdoc2.js&can=2&q= (rename it as jquery-1.3.2-vsdoc.js).

Leave a Reply