★ wanayoo — archive 1999 http://wdvl.internet.com/Authoring/Scripting/Modular/index.htmlNouvelle recherche | Portail wanayoo
<a href="/old?u=http%3A%2F%2Fwdvl.internet.com%2FRealMedia%2Fads%2Fclick_lx.ads%2Fintm%2Fwebdev%2Fwww.wdvl.com%2FAuthoring%2FScripting%2FModular%2Findex.html%2F15849%2F468x60-1%2FInterland_4k%2Finterland2.html%2F64316564656561333364663233643830%3Fhttp%3A%2F%2Fwww.interland.com%3FINT%3DINTERNET_750X100_2_NOV&y=1999"><IMG SRC="/old?u=http%3A%2F%2Fwdvl.internet.com%2FRealMedia%2Fads%2FCreatives%2FInterland_4i%2FINT_750x100_25k_server.gif&y=1999" WIDTH=750 HEIGHT=100 BORDER=0>
FREE
Newsletter


logo internet.com

Hot Topics
 JavaScript
 HTML
 CSS
 DHTML
 ASP
 XML

find a web host with:
CGI Access
DB Support
NT Servers
UNIX Servers
Telnet Access
advanced search
 WebDev Network 
    e-commerce   
internet.com

<a href="/old?u=http%3A%2F%2Fwdvl.internet.com%2FRealMedia%2Fads%2Fclick_lx.ads%2Fintm%2Fwebdev%2Fwww.wdvl.com%2FAuthoring%2FScripting%2FModular%2Findex.html%2F3763%2F125x125-1%2FActivePDF_4d%2F125x125_blue_DC2_clickTAG.html%2F64316564656561333364663233643830%3Fhttp%3A%2F%2Fwww.activepdf.com%2FAdTracking%2F4guys%2F125x125-DC.asp&y=1999"><IMG SRC="/old?u=http%3A%2F%2Fwdvl.internet.com%2FRealMedia%2Fads%2FCreatives%2FHouse_Partners_1c%2F125x125_backup_GIF.gif&y=1999" WIDTH=125 HEIGHT=125 BORDER=0>

Creating Portable and Modular Client-Side Scripts

March 15, 1999

Since the early days of browser-supported scripting, code was simply embedded within the HTML document. Easy at first, but this rubs against the grain of the traditional programming goal to create modular and portable code. As scripts have grown into ever more complex programs it becomes increasingly important to adopt the philosophies of programming languages versus simple markup. Several enhancements to the scripting environment help the developer separate program code from HTML markup. 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.

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?


Up to => Home / Authoring / Scripting


WebTrends: Download Your Free Trial!

Copyright 2002 Jupitermedia Corporation All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/