Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to programming as it is not my core field. Still somehow managed to create a website font end with core java. Now I am learning Flask as I want python at backend so that I could learn python and apply various modules of python in my website. I have some doubt. May be its too modest to ask here.:

How should I send array of numbers from Javascript to server that is using Flask.
Make some process on that array(I am using flask at backend. I have already made up a function that returns desired array. But that function is in JS and I don't wish to disclose the function on the client side as I will be refining that function over the time.).
Send the modified array back to the client-side.
Use that array in JS. (without using jQuery)

What I have tried:

I tried using JSON but it is getting more complicated as I just want to send numbers and return numbers.
Posted
Comments
Richard MacCutchan 29-Apr-17 8:54am    
JSON is still the best choice.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900