I have a strange problem when using AJAX My Success Data has been reduced
My Ajax function:.
$ ajax ({type: "post", URL: the URL, // connection function data for URL: {form: $ ('# jforms_users_connexion') serializeArray ().} , Success: function (data) {warning ("success entered");}});
My php function is
function connection () {$ representative = $ this- & gt; GetResponse ('json'); // my php will return a JSON array $ representative-> data = array ("data" => "toto"); JLog :: dump ($ representative); Return $ representative; }
dump this
default jResponseJson :: __ set_state (array ('data' = & gt; array ('data' = & gt; 'Toto'), '_type' => Zero, '_httpHeaders' => Array (), '_httpHeadersSent' => False, '_httpStatusCode' => '200', '_httpStatusMsg' = & However, 'httpVersion' => 1.1; 'forcedHttpVersion' = & gt; wrong;))
but the '_outputOnlyHeaders' = & gt; On Firebug, the reaction {"Data"
Any ideas?
after text" itemprop = "text">
There is a small syntax error with your ajax code -
Comments
Post a Comment