Folks,
Today I've been playing with some client-side scripts in Visual Studio 2005.
I created a new .JS file and started typing new functions. But what amazed
me was that in the first point I couldn't find document object in the VS2005
IntelliSense for that .JS file. Either if I write the document object by
myself, I furthermore can't see the methods and properties of this very
fundamental JavaScript object (methods like getElementById(),
createElement(), etc.).
Does Visual Studio have any support for the intristic objects of JavaScript
at all or is it something wrong within my settings?
Regards,
George Jordanov Ivanov
"Gary Chang[MSFT]" - 28 Feb 2006 06:19 GMT
Hi George,
>Does Visual Studio have any support for the intristic objects of
>JavaScript at all or is it something wrong within my settings?
yes, the Visual Studio 2005 still has Javascript intellisence to some
extent. But it does not provide a JavaScript editor, so the intellisence
will not apply to your JavaScript source code when you open a .js file
directly in the VS2005 IDE.
If you use the javascript code inside an asp.net/html file, the
intellisence would work as expected. :)
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
George Jordanov Ivanov - 28 Feb 2006 16:56 GMT
Thanks Gary!
Regards,
George Ivanov
> Hi George,
>
[quoted text clipped - 29 lines]
> rights.
> ======================================================
"Gary Chang[MSFT]" - 01 Mar 2006 01:58 GMT
You are welcome, George!
Good Luck!
Best regards,
Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
Joe Fawcett - 01 Mar 2006 12:18 GMT
> Folks,
>
[quoted text clipped - 10 lines]
> Regards,
> George Jordanov Ivanov
Do you mean a stand alone js file?
In that case you will get IntelliSense, e.g.:
var oDom = new ActiveXObject("Msxml2.DomDocument.4.0");
oDom. => choices appear
But you won't get external objects made available by the host, e.g. the
window object in an HTML page, because these are not built in JavaScript
classes. These will only appear if you're editing code within an HTML page.

Signature
Joe