Post to JDoodle

In this solution, you don't need to integrate API or include any HTML/JS. Just post a request to JDoodle from your web page with the program - JDoodle will display that program for your user to work on them.

Using this solution, you can display the code on your webpage with your own stying. When the user clicks on a link or button, you can post a request to JDoodle along with the program, then the user can try that program in JDoodle.

Sample Code

<form action="https://www.jdoodle.com/api/redirect-to-post/online-java-compiler" method="post">
  Script: <textarea name="initScript" rows="8" cols="80"></textarea>
  <input type="submit" value="Submit">
</form>

In the above code just change the "online-java-compiler" to the IDE you want to post to in JDoodle.

For example:

C - "c-online-compiler"

Python3 - "python3-programming-online"

You can get this from the IDE URLs in your browser.

Sample Integration

Note: Stored as .txt for security. Please save the file with ".html" extension.

Last updated