JavaScript
  Home arrow JavaScript arrow JavaScript Remote Scripting: Fetching Serv...
IBM Rational Software Development Conference
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Web Buyers Guide
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

JavaScript Remote Scripting: Fetching Server Data with the DOM
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 7
    2005-10-12

    Table of Contents:
  • JavaScript Remote Scripting: Fetching Server Data with the DOM
  • One step toward standardization: making http requests with the DOM
  • Setting up the server response: parsing XML in the server
  • Displaying XML data: defining the “createDataContainer()” and “displayData()” functions
  • Putting the pieces together: showing the complete script

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

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

    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.

    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!

    More JavaScript Articles
    More By Alejandro Gervasio


       · Over this article, find out how to make silent http requests, by using only the DOM....
       · Hi, I thought it is a good article to understand how to use javascript to...
       · Hello,I'm glad to know this article has been useful to you. Now, comming to your...
       · Hi, Alejandro,I found your article really thorough and easy-to-understand. Thank...
       · Hi friend,Thanks a lot for the kind comments on my JavaScript article. I found...
       · Hi,This article is very helpful for me.But I am facing difficulties in running...
       · Thank you for commenting on my JavaScript article, and I’m glad it’s been useful to...
       · Hi,Thanks once again for the help.I have all the applications installed in my...
       · Thank you for commenting on my JavaScript article. Here are some basic steps to...
     

    JAVASCRIPT ARTICLES

    - A Closer Look at Smart Markers with Yahoo! M...
    - Using Polylines and Smart Markers with Yahoo...
    - Bulleted Menu of Links
    - Creating Click Loggers and Basic Markers wit...
    - Adding Pan Controls to Yahoo! Maps
    - Adding Zoom Controls to Yahoo! Maps
    - Working with Yahoo! Maps
    - Building Image Zooming Controls with the DOM...
    - Working with Multiple Graphics for a Zoom Ap...
    - Improving an Image Zooming Application with ...
    - Zooming in on Images with JavaScript
    - JavaScript Date Objects: Universal Coordinat...
    - Javascript Objects: More Date Methods
    - JavaScript Objects: Dates
    - JavaScript Objects: Finishing Strings

    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway