Stephen Woodbridge schrieb:
> Jake,
> 
> Thanks for the help. I changed my code to look like this and got things 
> to work.
> 
>          $('#rgeo').bind('submit', function(){
>              var xml = $.ajax({
>                  url: "/rgeo/",
>                  dataType: "xml",
>                  async: false,
>                  data: {
>                      x: document.rgeo.x.value,
>                      y: document.rgeo.y.value
>                  }
>              }).responseText;
>              $("#response")[0].value = xml;
>              return false;
>          });
> 
> This should be better documented in the $.ajax() documentation.
> 
> Thanks,
> -Steve

Hm, this shouldn't be required at all, thus its not documented. The 
following does not work?

$('#rgeo').bind('submit', function(){
     $.ajax({
         url: "/rgeo/",
         dataType: "xml",
         data: {
             x: document.rgeo.x.value,
             y: document.rgeo.y.value
         },
         complete: function(xhr) {
             $("#response").val(xhr.responseText);
         }
    });
    return false;
});


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to