Home arrow JavaScript arrow Page 3 - Active Client Pages at the Server
JAVASCRIPT

Active Client Pages at the Server


Active Client Pages produce web pages at the client computer using web technology. The programming analysis, logic and calculations of the data for the pages are done at the client. The data to create the pages resides on the server. So what is the role of the server? That is what this article addresses. You need basic knowledge of JavaScript and Perl to understand it.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
October 20, 2009
TABLE OF CONTENTS:
  1. · Active Client Pages at the Server
  2. · The first thing that happens at the server
  3. · Using Perl to send a string to the client
  4. · Obtaining a string from any file in any directory at the server

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Active Client Pages at the Server - Using Perl to send a string to the client
(Page 3 of 4 )

The Perl file called by the client, in its simplest form, is as follows:

$sendStr = qq{

#HTML page and JavaScripts without escaping the entities

};


print $sendStr;

You have the quoting operator, named qq{}. Whatever is in the {} brackets is considered a string. You do not need to escape any entity in the qq{} operator.

There are two Perl statements here: the one for the quoting operator and “print $returnStr;”. This last statement returns the string to the browser at the client.

In this simple example, the string in the qq{} operator is a web page, made up of HTML elements and JavaScripts. The browser can use this string without modification to produce a new page. This string can actually be anything which the JavaScript at the client can handle.

You can have more Perl statements than I've shown in this example; however, the statements must all work to produce the string.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials