AJAX-Tools Tutorials
AJAX-ToolsHTML Bridge for Silverlight and JavaScript
The popular adoption of JavaScript for various client side functionalities has led to the creation of powerful web based applications. With the help of JavaScript and the use of Ajax, developers are able to create online applications that can be regarded as a convenient replacement for desktop applications.
The idea of "cloud computing" was actually reinforced with the development of JavaScript. Although it's not the default programming language, it has become the most popular programming language for cloud computing. Since using JavaScript is free, it can be adopted and learned by anyone.
But even though JavaScript has greatly advanced in creating online applications, there are areas that can't be easily covered by the programming language. Attacks are still common in JavaScript because anyone can easily access the programming language. It's also possible that JavaScript might not work well in various browsers because some its functions are not recognized by a specific browser.
For that reason, some developers opted to use a licensed client side programming language. A popular option for developers is to use Silverlight which is client side programming technique developed by Microsoft. It's one of the early "competitor" of JavaScript because it offers a client side application that offers great looking websites with powerful functions.
Silverlight and JavaScript maybe a competing programming language for the client side but it doesn't mean that implementing these programming languages at the same time is not possible. Silverlight and JavaScript could be easily connected by a simple function called HTML Bridge.
As the name suggests, this function connects Silverlight and JavaScript using an HTML code. By using HTML, developers can expect minimal resource requirement but very stable functionality.
JavaScript Inside Silverlight
The idea of a "bridge" is actually a form of implementation of JavaScript in Silverlight. With the help of HTML Bridge, developers will be able to create a separate JavaScript application inside Silverlight.
Microsoft's client side programming language will practically become a shell for JavaScript. In this setting, JavaScript developers will greatly benefit in HTML bridge. They don't have to learn extensive functions in Silverlight just to create an application based on the programming language. The missing functions in Silverlight can be replaced by JavaScript.
It's important to remember though that the created JavaScript inside Silverlight is an application. This means developers have to create a JavaScript application that can run by itself. Functions in JavaScript will never be read by Silverlight so an application has to be created so that they can be interpreted.
Challenge on Users
HTML Bridge is a very smart tool developed by Silverlight. Through this simple tool, JavaScript developers can use the extensive features of Silverlight while infusing important functions with the help of JavaScript.
But even though introducing JavaScript to Silverlight with the help of HTML bridge sounds impressive, it can take its toll in users. Silverlight requires a relatively powerful gadget in order to implement its functions.
By adding JavaScript, the required internet connection and hardware from local gadget increases. Before using HTML Bridge, make sure that the application is light enough to be implemented to the intended audience or else the application created has no use.
Sponsored Links
