Home arrow JavaScript arrow JavaScript Remote Scripting: Fetching Server Data with the DOM
JAVASCRIPT

JavaScript Remote Scripting: Fetching Server Data with the DOM


This article provides you with a handy method for making JavaScript-based requests to the server and serving XML documents, all without the need to use AJAX technology. If you’re inclined to work very close to W3C standards, this is an approach worth considering, since it allows the implementation of Web services through a cross-domain integration.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 11
October 12, 2005
TABLE OF CONTENTS:
  1. · JavaScript Remote Scripting: Fetching Server Data with the DOM
  2. · One step toward standardization: making http requests with the DOM
  3. · Setting up the server response: parsing XML in the server
  4. · Displaying XML data: defining the “createDataContainer()” and “displayData()” functions
  5. · Putting the pieces together: showing the complete script

print this article
SEARCH DEVARTICLES

JavaScript Remote Scripting: Fetching Server Data with the DOM
(Page 1 of 5 )

Welcome to part three of the series “JavaScript Remote Scripting.” Comprised of several parts, this tutorial introduces different methods of utilizing remote scripting on web-based applications, explaining the benefits and exploring different ways of implementation.

Returning to part two of this series, I demonstrated with an introductory example how you can read, process and display XML data, by using the already popular AJAX technology. As you know, JavaScript-based asynchronous http requests make it really easy to fetch data from the server, which has been structured as XML, for parsing in the client. Indeed, one of the most significant benefits of using AJAX for making requests in the background is the vast range of possibilities for processing data.

Either you’re developing an application that accepts raw data from the server for processing in the client –- generally through the DOM or the XML DOM, when applicable -- or setting up a Web service that does the hard processing on the server before sending data to the client. There are a plethora of development possibilities.

It’s precisely for that reason that I’ll continue exploring different methods for implementing remote scripting in Web programs. In particular, this part of the series will be aimed at explaining how to read and process XML data without the need to use AJAX as the primary technology for sending http requests. Of course, the best thing about JavaScript-based requests is that they can be performed  using only fully-W3C DOM standard methods, which certainly leads to using an approach that’s much closer to standardization.

Now that you have a clear idea about the topics to be treated in this article, it’s time to go further into the implementation of standard DOM methods for fetching data from the server. Let’s get started!


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




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