dimanche 28 décembre 2014

Ajax httprequest to python server side script


I want to obtain a vector layer using ajax call to python CGI script. This server-side script is not giving http response back to the client script. I run a test php script and able to get HTTP-response to the ajax call. My python script is in cgi-bin directory since it has to be there to be interpreted by Apache. For simplicity, I do not want web-frame works If I can fetch data from database and hand over to java script using the server-side script. So my question is,how can I make ajax call to python script which has to fetch data from a database and give the data back to the client script? or Is there faster and capable python module that can be used with Apache to be able to stream the HTTP-response to the client? Any sample code and/or suggestion is appreciated.





Aucun commentaire:

Enregistrer un commentaire