Walden

You  are so kind to continue with your help


Walden H. Leverich wrote:

Don't change button names w/innerHTML. Change them by changing the value
of the button. Here's my version of your cbt() function:

function cbt2(letter, newText) {
var buttons2 = session + "/BUTTON.999-999=*" + letter; document.getElementsByName(buttons2)[0].value=newText;
}


As I said in my previous post, I had tried the above, but I couldn't get it to work in NS. To be sure that I had done it correctly, I have now tried again but still it doesn't work. NS still insists that

document.getElementsByName(buttons2)[0] has no properties

I have taken the liberty of including a code snip in case it is simply a typing error that I cannot see.

Many thanks again

Rob

______________________________________________

<html><head><title>AS/400 Workstation Gateway</title>

<style>A:link {color:blue;text-decoration:none;font-weight:bold;} A:visited {color:blue;text-decoration:none;font-weight:bold;} A:hover {color:blue;text-decoration:underline;font-weight:bold;}</style></head>
<body bgcolor="#c0c0c0">
<form method="post" action="http://195.171.126.130:5897/WSG/019414/QTMTWSG/QTWSG00624";>
<input type="hidden" name="SESSION" value="/42329C9CC0694FC9/4FD9C6F3"><pre>
<center><h3>AS/400 Workstation Gateway</h3></center>
<font color="WHITE">ERROS Workgroup Organiser<font color="YELLOW" size="-1"> (An ERROS Application) <font color="BLUE" size="+0"> Rob Dixon <font color="NAVY"> Rob Dixon Collection <br> <br> <br> ERROS Country <br> name <br><script language="JavaScript"> var nHR = document.getElementsByTagName("HR")[0]; var nHRParent = nHR.parentNode; nHRParent.removeChild(nHR); var num; var msgt; var colour; var session=(document.getElementsByName('SESSION') [0].value); javascript:window.history.forward(1); colour = "cyan"; void(document.bgColor='C0C0C0');
function fd() {var buttonname = session + "/BUTTON.999-999=*E"; document.getElementsByName(buttonname) [0].click()}
function fm(msg) {;
if (msg=='1') {msgt="Double left click on link to navigate"}
else if (msg=='2') {msgt="Double click to continue"}
else if (msg=='3') {msgt="Double click to Navigate or Single click and then select option"}
else if (msg=='4') {msgt="Double click for details or Single click and click on Navigate"}
else {msgt="Hover over highlighted links or images for instructions"} javascript:document.getElementById('popupText').innerHTML=msgt;}
function fr(num) {document.getElementsByName('AFIELD.007-016') [0].value = num} </script>
<font color="#ffff00"> Public Data</font> <input type="text" name="AFIELD.007-016" value="" size="64" maxlength="64">
Selected <font color="#ff00ff"> </font>
<table><tbody><tr><td bgcolor="YELLOW"> To accept, click on ENTER; else type new ID &amp; click on ENTER </td></tr><tr><td bgcolor="yellow" id="popupText"> Hover over highlighted links or images for instructions</td></tr></tbody></table> <br> <br><tt><font color="YELLOW">(Page Down for more)
<br><font color="BLACK"> 1<a href="#" onmouseover="fm(2)" ondblclick="fr(1); fd()" onmouseout="fm(9)" ;=""> United Kingdom</a>
<br><br> <br> <br> <br> <br> <br> <br> <br> <br> <script language="JavaScript" defer="true"> function cbt2(letter, newText) {var buttons2 = session + "/BUTTON.999-999=*" + letter; document.getElementsByName(buttons2) [0].value=newText;} cbt2('1', "Help"); cbt2('2', "MSG Help");
</script>
<input type="submit" name="/42329C9CC0694FC9/4FD9C6F3/BUTTON.999-999=*E" value="Enter"><input type="submit" name="/42329C9CC0694FC9/4FD9C6F3/BUTTON.999-999=*U" value="Page Up"><input type="submit" name="/42329C9CC0694FC9/4FD9C6F3/BUTTON.999-999=*V" value="Page Down">
<input type="submit" name="/42329C9CC0694FC9/4FD9C6F3/BUTTON.999-999=*1" value="F01"><input type="submit" name="/42329C9CC0694FC9/4FD9C6F3/BUTTON.999-999=*2" value="F02">
</font></font></font></tt></font></font></font></font></pre>
</form>
</body></html>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.