Questions tagged [jdoodle]

18 questions
1
vote
0 answers

How to call JDoodle API from Python/Flask app

I'm a student, and I'm looking for help calling Jdoodle's compiler API (docs here), please. When I make a post request through Postman and use this as the JSON body, it works... { "script": "console.log('hello world')", "stdin": "", …
1
vote
2 answers

When I try to send code as string to jdoodle compiler api I am getting errors

var request = require('request'); var fs=require("fs"); var program = { script :"print('hello\nworld')", language: "python3", versionIndex: "0", clientId: "clientID", clientSecret:"clientSecret" }; request({ url:…
0
votes
1 answer

How to put a Char type into STDIN in JDOODLE by Pascal?

I would like to ask related to JDOODLE, how can I give any parameter of char type in the STDIN window for the language Pascal? Shall I use quotations or apostrophes? Pascal: readln(character); STDIN : c Shall I use c or 'c' or "c" ? For all three I…
0
votes
0 answers

Integrating jdoodle ide in react not rendering

I'm trying to integrate JDoodle IDE in React app . I'm using Frame library IDE component export function IDE(props: any) { return ( <>
infodev
  • 4,673
  • 17
  • 65
  • 138
0
votes
0 answers

JDoodle IDE plugin events

I want to add an event listener that will tell me when JDoodle is loaded on my react app. Something like useEffect(() => { const jDoodleScript = document.createElement('script') jDoodleScript.src = JDOODLE_COMPILER_SCRIPT …
0
votes
1 answer

Can not post request in HTML JS | No 'Access-Control-Allow-Origin' header is present on the requested resource

I'm making a Java Compiler website for myself and I'm using JDoodle In the document of this API, shows NodeJS code execute function (https://docs.jdoodle.com/integrating-compiler-ide-to-your-application/compiler-api) and I'm using javascript in…
0
votes
1 answer

POST request failed from Postman to Jdoodle API

I have created an account on jdoodle and buy a free plan in which we can make 200 requests per days and from there I got credentials (clientId and clientSecret) for making request to their api . I am making post request from postman to Jdoodle api.…
student
  • 1
  • 1
0
votes
1 answer

I am trying to "cut" a part of an iframe element

I have put an online compiler website inside my website, using an HTML iframe element. Basically, I want the user to compile and write code directly on my website, without opening a separate tab with the online compiler. Now, I want to know if there…
0
votes
0 answers

React: Iframe rendering new line character \n as a single space

I am working on an application using Node.js, Express, React & Redux that enables users to write code into a text-editor, when the user hits 'run' to submit their code the code is then compiled using the JDoodle API. As part of the JSON response…
seshkebab
  • 37
  • 6
0
votes
5 answers

403 Error when sending post request to external API

I have an Angular App that is used to compile a java program, I am using Jdoodle API for compilation, we send requests to Jdoodle and then get a response back, and that response is displayed over the UI. In Postman everything works fine but in the…
Vishwa Ratna
  • 5,567
  • 5
  • 33
  • 55
0
votes
1 answer

How do we take user inputs in Jdoodle Api?

I want to take user inputs in JDoodle Api I am using below Data $postData = array( "script" => $code, "language" => $language, "versionIndex" => "2", "clientId" =>…
Rajat Patil
  • 1
  • 1
  • 4
0
votes
0 answers

Can I do NASM file processing in online NASM compilers?

I am new to NASM and only at the basic level but is it possible to create to or open files from the computer hard drive through online NASM compilers? I am using JDoodle and Rextester NASM compilers but neither of them seem to be working.
Wajiha_R
  • 1
  • 1
0
votes
2 answers

Error while communicating with API server using AJAX calls

I've trying to communicate with JDoodle API Server using JavaScript (JQuery), but everytime it says, CORS error. But when I did the same using Java Servlets, it was perfectly working. I used axios, but it also says 'Network Error'. My function looks…
0
votes
2 answers

How to call JDoodle API from local Rails server?

I am calling the JDoodle API with post request from my local machine Rails server with valid id and secrete. I am not getting desired response. Please suggest me if i am doing wrong.... My Ruby function to make api call def run_Jddodle_API …
Raja Sharma
  • 460
  • 1
  • 7
  • 19
0
votes
2 answers

CURL is not returning correct response when json data is passed through variable

$data is the variable holding json string {"clientId":"MyClientID","clientSecret":"MyClientSecret","script":"\n","stdin":"","language":"php","versionIndex":"2"}. as you can see in the first line below.…
Twinkle
  • 191
  • 2
  • 12
1
2