DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 01 Aug 2007 10:22:33 -0400,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    dgk
          2    Fred Chateau


AJAX function (webmethod) call question   
Calling a simple webmethod from a page with the scriptmanager works
like this:

ret = SimpleService.SayHello(document.getElementById('Text1').value,
OnComplete, OnTimeOut, OnError);

The first parameter is the one expected by the function, and the rest
are callbacks. What is the format for calling a method that takes more
than one parameter?
Date:Wed, 01 Aug 2007 10:22:33 -0400   Author:  

Re: AJAX function (webmethod) call question   
I don't know how to do it, but I'm guessing that you would want to use a 
JSON object. You could pass your parameters as properties.

-- 
Regards,

Fred Chateau
fchateauAtComcastDotNet

"dgk"  wrote in message 
news:3l51b3ts7233dbq0uv5aijkqukpl72pfgk@4ax.com...

> Calling a simple webmethod from a page with the scriptmanager works
> like this:
>
> ret = SimpleService.SayHello(document.getElementById('Text1').value,
> OnComplete, OnTimeOut, OnError);
>
> The first parameter is the one expected by the function, and the rest
> are callbacks. What is the format for calling a method that takes more
> than one parameter? 
Date:Fri, 3 Aug 2007 12:13:51 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us