Is it working in vs 2008 Web Developer Express Edition?

Mar 13, 2008 at 8:41 PM
I try the ve demo but it looks doesn't work in vs 2008 web developer express edition after map. only like follows
map.
constructor
hasOwnProperty
isPrototypeOf
propertyIsEnumerable
toLocaleString
toString
valueOf

and that's it . please help out.
Coordinator
Mar 18, 2008 at 1:54 PM
I tested the project out in Visual Web Developer 2008 Express Edition. Did you make sure you entered the following reference in the .js file where you place your code?

/// <reference path="VEJS/VeJavaScriptIntellisenseHelper.js" />

Your path to the helper .js may be different if you chose to put it in a different directory.
Mar 29, 2008 at 1:59 AM
Hi There,

I've got it sort of working in VS 2008 Express Web Developer.

BUT - the intellisense for VE objects only works inside the function where you set map = new VEMap("myMap");

In any other function - even if you set the map as a global var or if you try to pass it as an argument - you get the intellisense menu above...

It's still a vast improvment on VS2005 - good effort guys!

Cheers,
Hugh
Coordinator
Apr 14, 2008 at 1:50 PM
It appears this a bug. However, it has nothing to do with Express. People are experiencing this issue in other versions of VS as well. We'll have to take a look and try to figure out what's causing this.
Coordinator
Apr 14, 2008 at 8:46 PM
This is in fact a bug and we are tracking it for the next release. In the mean time there is a workaround. Have a look at Default.aspx.js in changeset 9027:

http://www.codeplex.com/VEJS/SourceControl/DownloadSourceCode.aspx?changeSetId=9027

Baiscally, in functions outside of the function in which you instantiate map, the JavaScript intellisense engine doesn't know that you have instantiated the map even though you have a page level variable. The workaround is to do something like the following in your page level variable declarations:

/ WORKAROUND:
// USE AT DESIGN TIME TO GET INTELLISENSE FOR A PAGE LEVEL map VARIABLE
var map = new VEMap();

// WORKAROUND:
// MAKE SURE TO COMMENT THE LINE OF CODE ABOVE AND UNCOMMENT THE LINE
// BELOW AT RUNTIME.
//var map;

We are investigating a better solution, but this should get you by for now. Thanks!
Coordinator
Apr 14, 2008 at 9:45 PM
Edited Apr 14, 2008 at 9:46 PM
A more detailed explanation of the workaround is available at http://blogs.msdn.com/devkeydet/archive/2008/04/14/ve-javascript-intellisense-helper-bug-workaround.aspx.
Coordinator
May 2, 2008 at 11:46 PM
An update, nicer workaround is available at http://blogs.msdn.com/devkeydet/archive/2008/05/02/updated-workaround-intellisense-for-page-level-map-variables-using-the-virtual-earth-javascript-intellisense-helper.aspx

This approached will get rolled into the next release.