1

I am trying to create a small tool very similar to https://www.circuitlab.com/ I am thinking of using HTML5 canvas to create diagrams ( possibly with kinetic.js) and make use of Javascript to create graphics. I want each diagram to be mapped to a model which will run on the server side when called. For this I want to call python functions from java script and return the output of python functions to the same javascript code.

I have looked at this forum for similar questions. I found many but the answers were not related to what I want.

If I go to python based web packages like cherrypy or mod_python most documentation deals with creating HTML/javascript pages as output with a new url.

I do not want to go for pyjamas or skulpt.

Is it possible to do what I want using Javascript/Jquery/Ajax ?

I have been learning Javascript for a week now, Even though I am confident about my coding abilities, I am not familiar with the web terminologies.

abcd
  • 171
  • 1
  • 2
  • 11
  • 1
    this question is too broad for stack overflow. you're looking for the general concept of REST services, aka sending information from client to server via http calls. there's lots of ways to achieve that. – Andy Ray Oct 24 '12 at 08:58
  • Ah thanks for directing me, I will look into REST services. Should this question go to some other QA website under stackexchange? – abcd Oct 24 '12 at 09:17
  • here's a [simple example how to send/receive objects between javascript/python](http://stackoverflow.com/a/12812289/4279) – jfs Oct 24 '12 at 10:36
  • That looks pretty good :). I was looking more into cherrypy + pyhole. Thanks!! – abcd Oct 24 '12 at 18:22
  • I don't think this question is good on any exchange site. It's too broad. You need to narrow it down to a specific need, and if that need is just passing json between client and server, that's not specific enough. – Andy Ray Oct 24 '12 at 19:10
  • The magic word I needed was REST service. Sometimes when you come from a different background you do not know the terms you have to search for, This kills a lot of momentum. I feel that this type of question should be valid on some type of q/A site related to stack exchange. Perhaps there is a business opportunity in this gap ;) . – abcd Oct 25 '12 at 14:30

0 Answers0