Results 1 to 2 of 2

Thread: Information required on how to create a code window for a website

  1. #1
    Join Date
    Mar 2013

    Information required on how to create a code window for a website

    Hi all, I have tried researching but failed miserably on how to create a code window for an elearning site that I am
    creating for a school.

    My intentions is to have a frame or iframe where I type in the programming language python. Onclick the syntax
    would be converted into what it would represent and shown on the opposite screen. This can be seen on w3schools and many other e learning sites

    I am looking for any knowledge or pointer where I can find information to begin this process, any help would be greatly appreciated.

    Kind regards Andy

  2. #2
    Join Date
    Mar 2011
    If you mean you want to be able to type some Python code in a form and have it executed and the results displayed in a display box, the code is fairly simple in principle, but it would be very dangerous. You never want to allow users to upload scripts that will be directly executed on your server or they could easily hack your site unless you take some serious precautions - starting with pre-screening the code for potentially dangerous commands. The demonstrations you're seeing on sites like w3schools are almost certainly limited to HTML, CSS, and JavaScript which are reasonably safe to handle this way because they are processed in the users' browser and not by your server. I suggest that you wait until you have a good deal more experience before trying this on a real website.
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center