By way of example, in the following HTML page I would like the text "Hello World" to be written to the page when the page is loaded, and the content of the text box to be altered when the button is pressed. At present, I cannot get any of this working:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br />
<title>Test REXX</title><br />
<script type="text/rexx" language="rexx"><br />
document.write("Hello World")<br />
Return 0<br />
document.f1.inp.value = "New value inserted"<br />
Return 0<br />
<body onload="Func1()"><br />
Sample text<br />
<form name="f1"><br />
<input type="button" onclick="Press()" value="Press to change" /><br /><br />
<input type="text" name="inp" size=30 value="Replace me" /><br />
So can I use REXX to this kind of thing at all?<br />
If so, please can you answer questions such as:<br />
How is the <script type="????"> tag coded?<br />
How do I call the REXX functions from onload/onclick etc?<br />
How do I dynamically update the page or form fields from the REXX functions?<br />
Can you point me at any documentation, tutorials or working examples?<br />
Many thanks for your assistance.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.