{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method 'parse(typeName, ns)'
Method: parse(typeName, ns)
Method Full Name:     Type$parse(typeName, ns)
Class: Type
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Type.parse = function Type$parse(typeName, ns) {
2     /// <summary locid="M:J#Type.parse" />
3     /// <param name="typeName" type="String" mayBeNull="true"></param>
4     /// <param name="ns" optional="true" mayBeNull="true"></param>
5     /// <returns type="Type" mayBeNull="true"></returns>
6     var e = Function._validateParams(arguments, [
7     {name: "typeName", type: String, mayBeNull: true},
8     {name: "ns", mayBeNull: true, optional: true}
9     ]);
10    if (e) throw e;
11    var fn;
12    if (ns) {
13      fn = Sys.__upperCaseTypes[ns.getName().toUpperCase() + '.' + typeName.toUpperCase()];
14      return fn || null;
15    }
16    if (!typeName) return null;
17    if (!Type.__htClasses) {
18      Type.__htClasses = {};
19    }
20    fn = Type.__htClasses[typeName];
21    if (!fn) {
22      fn = eval(typeName);
23      if (typeof(fn) !== 'function') throw Error.argument('typeName', Sys.Res.notATypeName);
24      Type.__htClasses[typeName] = fn;
25    }
26    return fn;
27  }
This is the JavaScript source for method parse(typeName, ns) from ASP.NET AJAX Library. Full name for this method is Type$parse(typeName, ns). It belongs to the class Type, which is in Global (MicrosoftAjax.debug.js) namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map