>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Xml-script tutorial Part 3 by Alessandro Gallo - web method script xml class property element service

 
Registered tutorials: 501
Registered Users: 36172



Rating: 0 out of 0 votes cast


  
Category: Ajax and .NET

Xml-script tutorial Part 3 by Alessandro Gallo

Digg this   Post to del.icio.us

Abstract: This third part speaks about the InvokeMethod action, which allows calling a method declaratively.

Introduction

In the first and second part of this tutorial on xml-script we introduced the declarative programming model and illustrated how to handle events raised by the client Microsoft Ajax objects. Events can be handled by invoking a global JavaScript function or by using actions; in this third part we'll talk about the InvokeMethod action, which allows calling a method declaratively.

InvokeMethod Action

The InvokeMethod action enables invoking a method exposed in the type descriptor of a client object. In the following example, we'll illustrate this action with the help of an interesting class contained in the Futures CTP: Sys.Preview.Net.ServiceMethodRequest. This class abstracts an asynchronous call to a web service method and exposes a type descriptor that allows using it in xml-script. This means that we can invoke a web method and process its results without writing a single line of JavaScript.

The example

To keep things simple, we will poll (i.e. call at regular intervals) a web method that returns the current time on the web server; then, we'll display it on a label.


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 15
Unique Hits: 13


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0 0 0 0 0.4 0.4
Current 0 0 0 0 0 0
Previous 0 0 0 0 0 0
Jan 23 0 0 0 0 0 0
Jan 22 0 0 0 0 1 1
Jan 21 0 0 0 0 2 2
Jan 20 0 0 0 0 0 0
Jan 19 0 0 0 0 0 0
Jan 18 0 0 0 0 0 0
Jan 17 0 0 0 0 0 0
Jan 16 0 0 0 0 1 1
Highest 1 2 2 3 3 4


Script Execution Time: 0.29875 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2