query

Release 1.3 - ...

Smartlet.ajax() calls are always passed to the Smartlet item itself, not to the hosting page, so the url for the ajax call is fixed.

You can however pass querystring variables to the Smartlet by using the query property:

Javascript CopyCode image Copy Code
sml.ajax({
   busy: true,
   query: "myvar=1",
   ready: function(){
       alert("Ready");
   }
});