javascript - JQuery AJAX inexplicable parseerror -


My AJAX scripts are working perfectly and the success function is still working, still the script still Hits the message. I have decided that the problem is parser, what I have not decided, why is it happening and how can it stop it.

AJAX

  var dataString = 'title =' + title + '& amp; Price = '+ price +' and 'duration' = '+ duration +' and dip = '+ dive +' and rent = '+ rent +' and date = '+ + + date +' and currency = '+ currency +' & Amp; ; Cost = '+ Cost +' and Supplier = '+ Supplier; $ .ajax ({Type: 'POST', url: '& lt ;? php ek $? This poststoreal? & Gt; catad', data: data string, before: function () {$ ('# loadvish-new' ) .HTML '& lt; img id = "BKloader" src = "http://www.divethegap.com/update/z-images/structure/icons/ajax-loader.gif" alt = "" width = "30 "Height =" Html ('lkk');}, datatype: 'Jason', success: function (data) {$ (30 (/););}, error: function () {$ ('# loadVille- new '.html' #CollapsiblePanel '+ data cadet). Load (' & lt ;? php echo $ thisposturl? & Gt; # '+ data cadet) ;;}});   

PHP

  $ title = $ _POST ['title']; $ cated = $ the_post_id; $ date = get_the_time ('Wi- Md '); $ value = $ _POST [' value ']; $ period = $ _POST [' period ']; $ dive = $ _POST [' drive ']; $ rent = $ _POST [' rental ']; $ Currency = $ _POST ['currency']; $ cost = $ _POST ['cost']; $ supplier = $ _POST ['supplier']; $ date, 'value' = & gt; $ value, 'period' = & Gt; $ period, esco ('title' = & gt; $ headline, cadet = & gt; $ cadet, 'date' = & gt; $ dives, 'hire' = & gt; $ Fare, 'currency' = & gt; $ Currency, 'cost' = & gt; $ Cost, 'supplier' = & gt; $ Supplier)); Clean buffer on server side with    

before ob_clean output Try your JSON

Comments