Aug-22-2019, 06:31 AM
(This post was last modified: Aug-22-2019, 06:32 AM by perfectservice33.)
I have already created a program to run windows .bat file using Python and my requirements are
(1) Let user enter data in Tinymce editor embedded in HTML page. The HTML code is as given below
(2) On HTML button click , submit data entered into Tinymce editor embedded on HTML page - to the windows .bat file on web server and execute that windows .bat file
(3) Get output of the windows .bat file executed in previous step and display back in HTML page ( preferably in text area of Tinymce )
Sorry if you feel this is a basic question as I have recently taken up this task without much experience in programming field
(1) Let user enter data in Tinymce editor embedded in HTML page. The HTML code is as given below
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<!DOCTYPE html> <html> <head> <h3 align = "center" style = "color:red;" ><u>My Tool<u>< / h3> < / head> <body style = "background-color:#4863A0;" > <script src = "C:\Python\web_building\tinymce\plugins\tinymce\tinymce.min.js" >< / script> <textarea id = "mytextarea1" rows = "10" cols = "1800" >Write commands here < / textarea> < / script> <button class = "button button2" onclick = "myFunction()" >Convert Commands< / button> <script> function myFunction() { var myvar2 = mytextarea1.value / / below is just an example, I need to develop logic to get get tinymce content and send back that as / / a variable to my Python file document.getElementById( "demo" ).innerHTML = myvar2; } < / script> < / body> < / html> |
(3) Get output of the windows .bat file executed in previous step and display back in HTML page ( preferably in text area of Tinymce )
Sorry if you feel this is a basic question as I have recently taken up this task without much experience in programming field