Creating a frame that can read Python and convert it to HTML
The simplest way is to create a page with an iframe, call it result. Then create a simple <form> and give the form tag an attribute target="result". Include a textarea in your form. Your students' code is transfered to the webserver via a simple form submit. Then when your server produces an HTML response it is rendered in the iframe. 
No javascript is needed. KISS!
Hi all this is my first post as I have exhausted google and am asking for a little bit of help.
I'm a school teacher and I'm creating an ELearning website for my school, at present I'm attempting to create a code window where my students can input some python syntax and onlick the code is converted and shown in the adjacent window. Very similar to what is used in W3schools for its examples and various elearning websites.
Does anybody have any knowledge as to where I should start or have any links about creating this? I would probably go along the lines of when the 'submit code' button is pressed, a javascript object is created of the user input code, then rendered into the adjacent result box using some sort of ajax.
Thanks all for your kind, regards Andrew