|
Ajax in Web servers, it works! -- RoyLee --
it is strange to bind Web App, Web servers and AjaxPro. The work was done resently in my project. There is a Web servers: public class Service1 : System.Web.Services.WebService { public string myData; .... and a server method: public string HelloWorld() { return myData; } "myData" is very important, and should change every second. So I let the client get the data directly. public string GetData() { return myData; } then I call the method on the clint side: function GetServerData() { TestAjax_Webserver.Service1.GetData(GetServerData_callback); } It works! Very lucky. But it seems ugly. someone can change my program? |
|
-- JonCeanfaglione --
What's wrong with this? What would you like to change? On 7/11/06, RoyLee <lihongzhai> wrote: it is strange to bind Web App, Web servers and AjaxPro. The work was done resently in my project. There is a Web servers: public class Service1 : System.Web.Services.WebService { public string myData; .... and a server method: public string HelloWorld() { return myData; } "myData" is very important, and should change every second. So I let the client get the data directly. public string GetData() { return myData; } then I call the method on the clint side: function GetServerData() { TestAjax_Webserver.Service1.GetData(GetServerData_callback); } It works! Very lucky. But it seems ugly. someone can change my program? > |