I know there's a way to call [WebMethod] via jQuery ($.ajax(...))
I was wondering if it's possible to call [ScriptableMember] via jQuery.
views:
149answers:
2
A:
It's just javascript. Maybe not the jquery ajax method, but that doesn't really mean much.
Some plugins do have calls to the ajax method built in, but they're usually not too hard to modify if necessary.
Tom Clarkson
2009-05-07 15:22:38
The only problem is that this makes a synchronous call. I was hoping for a asynchronous call. Hence I asked about jquery.
ra170
2009-05-07 15:54:16
Synchronous methods can be called asyncronously - just search for something more generic like asynchronous javascript - you don't need anything specific to scriptablemember.
Tom Clarkson
2009-05-08 00:12:05
A:
jQuery ($.ajax()) methods are design to call ajax methods via URL or at least you need to specify url in short form, i.e something.php, so the short answer is that this is not possible. I went with my original design which was to call javascript from C# (managed code) and vice-versa.
ra170
2009-08-28 16:41:58