I have a string of values separated by a space that I return to the Jquery call, but it does not separate the words into rows. Should the data be returned as a string or a list or something else?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default it wants the results separated by newlines. If you supply a list of values separated by spaces you’ll want to provide a parse function that will take the returned data and turn it into an array. The same is true if you supply a list of values instead.
Here’s a sample from a project I’m working on that returns a list of strings via JSON from an MVC action.