Re: AJAX
- From: "Peter Morris [Droopy eyes software]" <pete@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 22:28:15 +0100
I'm just looking at it for the first time tonight, it looks quite
interesting.
I created a simple function in Delphi, equivalent of this...
[Ajax.AjaxMethod]
function GetFullName(Title, FirstName, LastName: string): string;
begin
Result := Title + ' ' + FirstName + ' ' + LastName;
end;
In the Page.Load I did something like this
Ajax.AjaxUtility.RegisterType(typeof(WebForm1));
In my ASPX I was able to add the following javascript
var response = WebForm1.GetFullName('Mr', 'Peter', 'Morris');
alert(response.value);
I called that JScript from a button click, the method executed on the
server, and the client showed "Mr Peter Morris".
Very clever :-)
--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com
Read or write articles on just about anything
http://www.HowToDoThings.com
My blog
http://blogs.slcdug.org/petermorris/
.
- References:
- AJAX
- From: Peter Morris [Droopy eyes software]
- AJAX