This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Integration with Fluxstore app technical question

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Integration with Fluxstore app technical question Reply To: Integration with Fluxstore app technical question

#37739
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

By default the plugin returns structured HTML output with additional information via JSON separated by delimiters. The JSON information is returned as a string inbetween !!ASPSTART_DATA!! and !!ASPEND_DATA!! delimiters.

This data can be parsed from the XHR response like this:

data_response = response.match(/!!ASPSTART_DATA!!(.*[\s\S]*)!!ASPEND_DATA!!/);
data_response = JSON.parse(data_response[1]);

The data_response variable wil contain the results as an object array. This is a javascript example, but the same can be achieved with any other programming language.