View Single Post
  #3  
Old 12-01-2017, 08:01 PM
 
Alex L Alex L is offline
 

Newbie
  
Join Date: Nov 2017
Posts: 3
 

Default Re: How to properly perform AJAX

Quote:
Originally Posted by qualiteam
Please check how \XLite\Controller\Customer\Rest and \XLite\Controller\Customer\Autocomplete controllers return JSON data.
I think this should help.

Thank you for your reply! I completely forgot about adding headers, but adding them did not solve my issue. I still kept receiving raw html of page on which my script was being executed. I solved this by using jQuery.ajax() post method instead and it worked just fine. But I still do not understand why I could not get core.post() to work.
__________________
X-Cart Ultimate 5.2.14
Reply With Quote