DO NOT DO THIS, you are allowing anyone to hack your database. Learn about
SQL injection!
> I have a js class with the follow function:
> getValor: function(expr) {
> var teste = null;
> var bindArgs = {
> url: 'execexit',
> content : { method : 'execsql',
> sql : 'select 10 as coisa from pocaauxi'
> },
> mimetype: "text/json",
> error: function(type, errObj){
> alert("Erro ao fazer request, tente
> novamente em "
> + "alguns minutos. " + errObj);
> },
> load: function(type, data, evt){
> teste = data.colunas;
> //I need to return this variable
> }
> };
> var requestObj = dojo.io.bind(bindArgs);
> //Always is null
> return teste;
> }
> I need the function getValor to return the ajaxData to another local
> who I call this method..
> But it alwyas return null. I tried in many ways, but withouth sucess. I
> think I need to learn more javascript..