samedi 9 mai 2015

How to pass a large json data from view to controller, and save it in the server?

My situation is, i have a file which is formate of .CSV, i use javascript to convert it into json, this is successful.

But in another view, i need this json data in the "data-source",

<div id="map" data-source="/Test/flickr_Test_view.csv"></div>

so i think i should pass this json data from view to controller in ajax, and save this data as a .json file in server, then i can succeed use it above

Can some body help me how to pass a large json data from view to controller? Thank you!

Aucun commentaire:

Enregistrer un commentaire