magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 2001 > 07 > Script Junkie  

Transcending Client/Server

By Ira Walters

Because of how browser-based applications work, they often feel different from custom software. A browser typically requests information from a server and displays it as a single transaction. Later, if the browser requests new information, it must reconnect to the server and perform another transaction. Then, the page refreshes to display the new data.

This limitation prompted Microsoft to develop remote scripting. This lets browsers execute methods on the Web server as easily as if those methods resided in a script on a Web page. More importantly, a browser can request new information from a server (for example, a database) and display that information without refreshing the page.

As a security measure, remote scripting restricts the data types you can transmit to integers and strings. Because structured data like arrays and objects create potential security risks (for example, a virus being sent to your server), you can't send them. And just as with forms, any input is automatically converted to a string. However, the server may send arrays and objects back to the client (although I've been able to do this only when I use JScript as the server-side programming language). Implementing remote scripting is a three-step process:

  1. install three Microsoft files onto the Web Server;
  2. make methods available from the server side;
  3. enable the client side to access these server-side methods.

You'll need to get the following three files from Microsoft (



  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2