jQuery ajax responseText 'undefined' -


I have some jQuery which posts two variables for a php script. PHP is very simple and simply gives the string based on that 'given update' which I want to use on some page on the page.

The first time I click the warning 'Undefined', any other click and everything works fine enough to make sure that I am not away, but I can not solve this problem!

I have used firebug and the data has been posted and the correct response has been received on all the efforts.

ft ('value'); Deductions = $ (ADR) ('value'). Etritt ('value'); Datastring = 'additions =' + additions' & amp; Deductions = '+ deductions; $ AJAX ({Type: "Post", Data: Datestrying, URL: Doadjust.php ", Completed: Function (Data) {Warning (Data.Propic Text);}}})}}}}); < / Pre>

It sorted. Ajax function requires the async: false option Data type: "html", async: false, breakthrough: function (data).

) {Warning (data);}});

Comments