[eluser]Ajaxboy[/eluser]
Hello salvomil,
That can be accomplished with a wrapper around the call() function, which can be done with a plugin.
Here is A generic sample, which is untested, but if you have problems and would like more help let me know.
First create file cjax/plugins/call2/call2.js, then add the following code in it:
Code:
//cjax/plugins/call2/call2.js
function call2(url, _name)
{
var name = this.$(_name).value;
if(name.length >= 3) {
this.call(url+name);
}
}
The code is pretty self explanatory.
//using call2 plugin
Code:
$ajax->keyup("name", $ajax->call2("ajax.php?mycontroller/get_names/","name"));