Discussion:
problem with ajaxForm
Abraxas
2010-03-03 14:54:21 UTC
Permalink
I NEED HELP PLEASE... IM USING AJAXform and i need send a javascript
variable but i don´t know how i can do that! this is the code:

obs: I need send the form and the array "series"

//en series[] se almacena cada fila de la tabla
for(var i=0;i<numFilas;i++){
var fila=filas[i];
var columnas=fila.cells;
var id_aux=0;
series[i]=columnas[0].innerHTML+"-"+ columnas[1].innerHTML;
}

var opciones = {
target: '#resp',
//clearForm: true,
resetForm:true,
data:"series="+series

}

$('#form').ajaxForm(opciones) ;
//var queryString = $('#form').formSerialize();
//queryString=queryString +"&series="+series;
//$(this).ajaxSubmit(options);
//$.post('respuesta.php', queryString);

I do this but in respuesta.php i don´t receive the data value...please
i need helpp :(
Rey Bango
2010-03-03 15:17:02 UTC
Permalink
Abraxas,

Could you please post your question here? http://forum.jquery.com/

That is the official support forum for the jQuery project. We no
longer monitor this Google group.

Thanks,

Rey
jQuery Team
Post by Abraxas
I NEED HELP PLEASE... IM USING AJAXform and i need send a javascript
obs: I need send the form and the array "series"
//en series[] se almacena cada fila de la tabla
               for(var i=0;i<numFilas;i++){
                       var fila=filas[i];
                       var columnas=fila.cells;
                       var id_aux=0;
                       series[i]=columnas[0].innerHTML+"-"+ columnas[1].innerHTML;
               }
           var opciones = {
                               target: '#resp',
                               //clearForm: true,
                               resetForm:true,
                               data:"series="+series
                               }
               $('#form').ajaxForm(opciones) ;
               //var queryString = $('#form').formSerialize();
               //queryString=queryString +"&series="+series;
               //$(this).ajaxSubmit(options);
               //$.post('respuesta.php', queryString);
I do this but in respuesta.php i don´t receive the data value...please
i need helpp :(
Continue reading on narkive:
Loading...