May-19-2023, 02:56 PM
(This post was last modified: May-19-2023, 02:56 PM by pyscript_dude.)
Hi,
I am trying to embed a python script into an html page via pyscript. I want to call the input from an html form. In python script, if I use
everything works fine, however if I use
then it gives
Any ideas and suggestions to solve this problem would be appreciated. Thank you.
I am trying to embed a python script into an html page via pyscript. I want to call the input from an html form. In python script, if I use
1 |
input = "word" |
1 |
word = Element( 'word' ).value |
Error:IndexError: range object index out of range
Of course I used an html form as follows1 2 3 4 |
<form onsubmit = "return false" > <label>Enter the word:< / label> < input type = "text" id = "word" > < / form> |