concept browser DOM in category .net

appears as: browser DOM
IronPython in Action

This is an excerpt from Manning's book IronPython in Action.

So what benefits for web application programming does Silverlight have over traditional JavaScript and AJAX? The first advantage is that it can be programmed in Python, and frankly that’s enough for us. The Python community has long wanted to be able to script the browser with Python rather than JavaScript, and it is at least slightly ironic that it is Microsoft that has made this possible. Perhaps a more compelling reason is that Silverlight is fast. By some benchmarks[3] IronPython code running in Silverlight runs two orders of magnitude faster than JavaScript! As well as having its own user interface model, Silverlight also gives you full access to the browser DOM (Document Object Model), so that everything you can do from JavaScript you can also do from inside Silverlight. In fact, one of the dynamic languages that run on the DLR is an ECMA 3[4]–compliant version of JavaScript called Managed JScript. This makes it easier to port AJAX applications to Silverlight, because a lot of the code can run unmodified.

13.3. Videos and the browser DOM

Despite its diminutive download, Silverlight packs in a great deal. The intended use for Silverlight spans the gamut of games, applications, and media streaming, so along with the .NET Base Class Libraries it comes with APIs specific to these tasks. Some of these are the adapted version of their complementary WPF class in the desktop framework. Others, like those for working with the browser DOM, are new to Silverlight. In this final section of the chapter, we use two more of the core Silverlight APIs.