|
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; } -Walden ------------ Walden H Leverich III President & CEO Tech Software (516) 627-3800 x11 WaldenL@xxxxxxxxxxxxxxx http://www.TechSoftInc.com Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Rob Dixon Sent: Wednesday, 10 November, 2004 11:14 To: Web Enabling the AS400 / iSeries Subject: Re: [WEB400] Javascript and browser compatability - progress Walden I forgot to say earlier that I had quite a few problems making the changes, because at one point something I had fixed (changing the text on mousover) suddenly stopped working, so I went back to my save of my RPG source and started again. On the third attempt, I realised that the culprit was javascript:document.getElementById('popupText').innerHTML=msgt;} which I had changed to getElementsByName. Changing it back to Id solved the problem and works in NS, Firefox and IE. The same technique, using value instead of innerHTML did not work for the button names. I can find no reference in any of my books to using javascript: in this way but I copied it from one of your samples (I think - Float?) It is possible that I have achieved the result that I want in the wrong way! I will try and solve the button problem myself (but if I don't succeed ...) Many thanks Best wishes Rob _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.