First of all, we have tested (or your usual development experience) know that in the Ajax callback function using Get or POST method can pass the string (do not believe you can write the instance test, but note: Get method has data volume limit):
Method One: We convert the AJAX request back into a JSON array into a string, and then get past the callback function:
Ajax request code for the a.html page:
B. Background two processing functions (note in particular that the second is the handler that the callback function points to):
Method Two: We directly process the callback function to send a new AJAX request (also can be written as an anonymous function), the AJAX returned JSON array into a string as a new parameter post past (also can get):
A.ajax Request page:
B. Background two processor pages (especially note that the next one is to receive the parameters passed by the callback function and into the array):
How do I pass JSON data in the destruction function of Ajax? How do I accept and convert an array in the controller?