Straight from the examples on mooshell.net, little bit changed to
reflect your example: http://mootools.net/shell/xzhuX/

> var jsonRequest = new Request.JSON({url: serviceURL, onSuccess:
> function(result){
>     alert("result:"+result);}}).post({'method': 'store', 'params': 'bla 
> bla'});

Be adviced, although you set the parameter 'method' to the value
'store' in the call to post, you'll execute the method post. The
parameter 'method' with value 'store' is simply send to the server as
post data. See the example

Wo.

Reply via email to