Python Forum
HTML to Python to Windows .bat and back to HTML
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML to Python to Windows .bat and back to HTML
#1
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
<!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>		
(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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WebElements of an HTML page Nik1811 2 231 Mar-14-2024, 12:39 PM
Last Post: Nik1811
  Going through HTML table with selenium emont 3 708 Sep-30-2023, 02:13 AM
Last Post: emont
  Need to replace a string with a file (HTML file) tester_V 1 675 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  why doesn't it replace all html tags? Melcu54 3 678 Jul-05-2023, 04:47 AM
Last Post: Melcu54
  pyscript index error while calling input from html form pyscript_dude 2 908 May-21-2023, 08:17 AM
Last Post: snippsat
  html module in python 3.6.8 suifra 9 1,477 May-12-2023, 11:30 AM
Last Post: suifra
  How to display <IPython.core.display.HTML object>? pythopen 3 45,604 May-06-2023, 08:14 AM
Last Post: pramod08728
  Embedding python script into html via pyscript pyscript_dude 7 1,434 Apr-16-2023, 11:17 PM
Last Post: pyscript_dude
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 862 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
  BeautifulSoup - I can't translate html tags that contain <a href=..</a> OR <em></em> Melcu54 10 1,547 Oct-27-2022, 08:58 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020