I think .getJSON better for this dont?

$.getJSON('teste.php',{query: 'edit', id: idval}, function(data){
$("[EMAIL PROTECTED]").val(data.nome);
});

On 6/29/07, Massimiliano Marini <[EMAIL PROTECTED]> wrote:

>   $.ajax({
>     type: "POST",
>     url: "test.php",
>     data: "query:edit&id="+idval,
>     dataType: "json",
>     success: function(data){
>       $("#name").val(data.name);
>       $("#surname").val(data.surname);
>     }
>   });

Very easy many thanks :)

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay



--

[]´s Jean
www.suissa.info

  Ethereal Agency
www.etherealagency.com

Reply via email to