Hi all,

I am using jQuery Form Plugin to submit a form to my php.

I am using ajaxSubmit to achieve the same. But when I used it like
this,
---------------------------------------------------------------------------------------

$(document).ready(function() {
    var options = {
        target:        '#output2',
        beforeSubmit:  showRequest,
        dataType:  'xml',
        success:       showResponse,
        url: 'index.php'
    };

     $('#myForm').submit(function() {

        $(this).ajaxSubmit(options);

        return false;
    });
});
-------------------------------------------------------------------------------------------------------------------
index.php content...
<?php
header('Content-type: text/xml');
echo '<root><message>Info</message></root>';
?>
--------------------------------------------------------------------------------------------------------------------

I am getting the output xml from the php in the same window.
It never goes inside showResponse function.

 I donot want this page redirection to happen :(
Instead I want to handle the returned xml (or any data) in jquery
itself.

Can anyone pleasseeee help me ??

I am using Mozilla 3.0.6,


Thanks in advance.

Reply via email to