Page 1 of 1

parameters.action in this.ajaxcall

Posted: 02 April 2013, 21:57
by pikiou
In this.ajaxcall( url, parameters, obj_callback, callback, callback_error ) if the paramaters object has a property named action, does it affect the ajax call?
It seemed to cause trouble when I tried this:

Code: Select all

this.ajaxcall("/gearnpiston/gearnpiston/chosenBackAlley.html", {action: 'something'}, this, function(result) {}, function(is_error) {});

Re: parameters.action in this.ajaxcall

Posted: 03 April 2013, 09:23
by sourisdudesert
Hello Pikiou,

You are allright. There are some restricted keyword, including "action" and "module". I'm going to list them.

Also: don't forget to use "lock:true" which is a mandatory parameter. Otherwise the interface won't "freeze" and a double clic can send unexpected requests to the server.

Cheers,

Re: parameters.action in this.ajaxcall

Posted: 03 April 2013, 13:56
by pikiou
Didn't think about the double click consequence; I'll do it thanks!