bartonc: No, I haven't looked into Jython yet. It's an integration of Java and Python, right? We are required to do it in Python alone..
kudos:
even though your problem doesn't seem to be very well formulated (for instance, what is an "item") couldn't you do something like this? (without using python at all)
-
-
<html>
-
<body>
-
<script type="text/javascript">
-
-
function foo(){
-
alert(document.test.me.value)
-
}
-
-
</script>
-
-
-
<form name="test">
-
<textarea name="me"></textarea>
-
<input type="button" onClick="foo()">
-
</form>
-
</body>
-
</html>
-
-
-
Will make a bip, and display an alert box with the content of the textarea.
The program that I'm doing is in Python. Manually, one would be pasting certain texts in a textarea of a website, click submit, the page then would be redirected to the result, then copy and paste the result to an xml document. We were asked to automate this process. The website that I am referring to is in javascript so I figured the python program can manipulate its source. I looked into the webbrowser module but all I can do was open the url of the said website (i.e. webbrowser.open(url)). I'm relatively new to Python so if anyone can help me, I'd be very grateful =)