| ★ wanayoo — archive 1999 http://wdvl.internet.com/Authoring/Scripting/Modular/ | Nouvelle recherche | Portail wanayoo |
|
||||
Creating Portable and Modular Client-Side ScriptsMarch 15, 1999
In the evolution of browsers from mere hypertext viewers towards meta-operating systems we gained the ability to process data and interaction from within the browser. Where previously we had to rely on the Web server to execute any instructions, the introduction of LiveScript which quickly morphed into JavaScript enabled Web developers to execute certain types of scripts on the client-side, saving bandwidth and increasing response time. At first, script code was simply embedded within the HTML document, but this rubs against the traditional aim of programming to create modular and portable code. Several enhancements to the scripting environment help the developer separate program code from HTML markup; while still immature, these techniques indeed work towards the goal of taking Web scripting seriously. This article examines the few methods available today for externalizing your Web scripts in attempting to keep them modular, portable, and outside HTML. Experience with HTML markup and embedded scripts will be useful; we'll be using JavaScript as our de facto scripting language although there are alternatives (Microsoft's VBScript, ActiveState's PerlScript, etc.)
Contents:
Why not embed?
Modularity Portability Embedding Code External Scripts Ugly Grafted Event Handlers Behaviors in Internet Explorer 5
| ||||
internet.com
| |
e-commerce
|
Copyright 1999-2000 internet.com Corp. Legal Notices. Privacy Policy.