On May 29, 8:22 am, eid <[EMAIL PROTECTED]> wrote:
> Thank you for the response, but that doesn't seem to have any effect
> at all.
>
> On 29 Maj, 14:02, malsup <[EMAIL PROTECTED]> wrote:
>
> > Add this to the top of register-process.php:
>
> > <?php header('Content-type: text/xml'); ?>


What exactly do you want to have happen?  You're using the 'target'
option to send the response to a div, but your response is XML.  That
doesn't really make sense.  If you want to push the response to a div
then the response should be HTML text.  If your response is going to
be XML then you need to process it in a success handler.  For example:

var options = {
    dataType: 'xml',
    success:  function(xml) {
        var title = $('title', xml).text();
        var msg = $('body', xml).text();
        var s = '<h1>'+title+'</h1>' + '<div>'+msg+'</div>';
        $('#loaded').html(s);
    }
};

You still need the PHP header if you're going to return XML.

Mike

Reply via email to