Thursday, November 15, 2007

Declaring Namespaces

function pageLoad(sender, args)
{
Type.registerNamespace('Wrox.ASPAJAX');
alert(Type.isNamespace(Wrox.ASPAJAX));
var namespaces = Type.getRootNamespaces();
var resultString = null;
for(var i = 0, length = namespaces.length; i < length; i++) {
resultString +=namespaces[i].getName(); //displays
}
document.getElementById('result').innerHTML = resultString
}

2 comments:

Unknown said...

Hope you're enjoying our book Professional ASP.NET 2.0 AJAX
by Matt Gibbs and Dan Wahlin from
Wrox Press ISBN:9780470109625. Looks like you must be reading it on wrox.books24x7.com which is a fantastic service. If you like the book, hopefully you'll give it a good review on your blog or elsewhere.

Bin Zeng said...

Yes, I did enjoy reading your ASP.NET 2.0 AJAX. I am always read Wrox books. I did read from eCollections.The best service so far...