× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



With a quick gander I'd say it's the same problem with name vs. id. The
button's NAME is "..../BUTTON.999..." but it has no ID. And as we
learned previously, IDs and NAMEs are the same in IE (hence it works)
but not in Netscape (hence it doesn't).

The function:

function fd() {
        var buttonname = session + "/BUTTON.999-999=*E"; 
        document.getElementById(buttonname).click()
}

Should be:

function fd() {
        var buttonname = session + "/BUTTON.999-999=*E"; 
        document.getElementsByName(buttonname)[0].click()
}

-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: Tuesday, 09 November, 2004 10:40
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Javascript and browser compatability - half astep
forward

Walden

I meant to put in a code snip so here it is.

But I fully understand if you don't have time to look!

Best wishes

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>
<form method="post" 
action="http://000.000.000.000:5863/WSG/019376/QTMTWSG/QTWSG00561";>
<input type="hidden" name="SESSION" value="/3EAC243C8F038D11/4FD9C6F3">
<pre>
<center><h3>AS/400 Workstation Gateway</h3></center>

<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.getElementById('SESSION').value); 
javascript:window.history.forward(1);
 colour = "cyan"; void(document.bgColor='C0C0C0');
function fd() {var buttonname = session + "/BUTTON.999-999=*E"; 
document.getElementById(buttonname).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.getElementById(buttons2).value=newText;} cbt2('1', "Help"); 
cbt2('2', "MSG Help"); cbt2('3', "Return"); cbt2('5', "Refresh"); 
cbt2('7', "Audit"); cbt2('X', "BACK");cbt2('Z', "Tasks"); cbt2('I', 
"Navigate"); </script>

<input type="submit" name="/3EAC243C8F038D11/4FD9C6F3/BUTTON.999-999=*E"

value="Enter"><input type="submit" 
name="/3EAC243C8F038D11/4FD9C6F3/BUTTON.999-999=*U" value="Page 
Up"><input type="submit" 
name="/3EAC243C8F038D11/4FD9C6F3/BUTTON.999-999=*V" value="Page Down">
<input type="submit" name="/3EAC243C8F038D11/4FD9C6F3/BUTTON.999-999=*1"

value="F01">
<input type="submit" name="/3EAC243C8F038D11/4FD9C6F3/BUTTON.999-999=*2"

value="F02">
</font></font></font></tt></font></font></font></font></pre>
</form>
</body></html>

_______________________________________________
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 thread ...

Follow-Ups:

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.