First off, great job on the JavaScript intellisense that is part of 2008. I am able to get it to work in most cases, but there is one example where I don't know if its something I am doing wrong or the intellisense engine just doesn't support it. Does
the engine provide intellisense when you are working within your own class? I have posted a class below, and I was hoping that while I am in my intialize method I would be able to use intellisense to see what method and private variables are available to
me in this class. Does it not support this?
whoiskb
Member
49 Points
21 Posts
JavaScript Intellisense Question
Oct 31, 2007 07:27 PM|LINK
First off, great job on the JavaScript intellisense that is part of 2008. I am able to get it to work in most cases, but there is one example where I don't know if its something I am doing wrong or the intellisense engine just doesn't support it. Does the engine provide intellisense when you are working within your own class? I have posted a class below, and I was hoping that while I am in my intialize method I would be able to use intellisense to see what method and private variables are available to me in this class. Does it not support this?
Thanks!
===============
1 /// <reference name="MicrosoftAjax.debug.js" />
2 /// <reference name="MicrosoftAjaxTimer.debug.js" />
3 /// <reference name="MicrosoftAjaxWebForms.debug.js" />
4
5 Type.registerNamespace('Sample');
6
7 Sample.Menu = function(element)
8 {
9 Sample.Menu.initializeBase(this, [element]);
10 this._selectedIndex = null;
11 }
12
13 Sample.Menu.prototype =
14 {
15 initialize : function()
16 {
17 Sample.Menu.callBaseMethod(this, 'initialize');
18 },
19 get_SelectedIndex : function()
20 {
21 return this._selectedIndex;
22 },
23 set_SelectedIndex : function(value)
24 {
25 this._selectedIndex = value;
26 }
27 }
28
29 Sample.Menu.registerClass('Sample.Menu', Sys.UI.Control);