× 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.



Walden,

I did say that I was at a very early stage and I wasn't expecting to post
code at this stage. However, here it is. The data is just a simple list of
names. One has a text comment. The mouseovers and mouseout change the
message displayed by the function fm.

I haven't got the ondblclick and onclick to work yet, but as this code has
been copied from my WSG version, I know that it will work.

The reason for both double and single click is that my database is
multi-dimensional and a single click will take me to lower level data simply
considering the individual as an engraver - e.g. a list of the items that he
engraved - and a double click to the main record for the individual listed
so that all known information about him can be accessed. Where there is no
possibility of such "navigation", then the double click option would not be
in the data stream.

The array nokey relates to function keys. I still have work to do on this
as well but it worked in my WSG version.

There is probably some redundant JavaScript to be removed that relates to my
WSG version.

Do you know a way of reducing the amount of Javascript?

<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<title>ERROS</title>
<script charset="utf-8" id="injection_graph_func"
src="ERROS_files/injection_graph_func.js"></script></head><body
onload="DoOnLoad()" bgcolor="#303030">
<form method="post" action="/cgi-bin/E29RPP.PGM/129957749148232/">
<script language="JavaScript"> var num; var msgt; var shift;
document.getElementsByTagName("BODY")[0].setAttribute("onLoad","DoOnLoad()");
var session=(document.getElementsByName('SESSION')[0].value);
javascript:window.history.forward(1); document.onkeydown = showDown;
function showDown(evt) {evt=(evt) ? evt : ((event) ? event : null); if (evt)
{if (evt.shiftKey) {shift=true;} var nokey=new Array();
nokey[0]=112;nokey[1]=113;nokey[2]=114;nokey[3]=115;nokey[4]=116;nokey[5]=117;nokey[6]=118;nokey[7]=119;nokey[8]=120;nokey[9]=121;nokey[10]=122;nokey[11]=123;
for(var i=0;i<nokey.length;i++) {if(evt.keyCode==nokey[i])
{buttonClick(i,shift); cancelKey(evt);}}}} function cancelKey(evt) {if
(evt.preventDefault) {evt.preventDefault();return false;} else {evt.keyCode
= 0; evt.returnValue = false;}} if (navigator.appName=="Netscape")
{document.addEventListener("keypress",showDown,true);} function
buttonClick(i,shift) {var letkey=new Array(); if (shift)
{letkey[0]="D";letkey[1]="Y";letkey[2]="F";
letkey[3]="G";letkey[4]="Z";letkey[5]="I";letkey[6]="J";letkey[7]="K";letkey[8]="L";letkey[9]="M";letkey[10]="N";letkey[11]="O";}
else
{letkey[0]=1;letkey[1]=2;letkey[2]=3;letkey[3]=4;letkey[4]=5;letkey[5]=6;letkey[6]=7;letkey[7]=8;letkey[8]=9;letkey[9]="W";letkey[10]="B";letkey[11]="X";}
var buttonname = session + "/BUTTON.999-999=*" + letkey[i];
document.getElementsByName(buttonname)[0].click();} function fd()
{document.getElementsByName(session + "/BUTTON.999-999=*E")[0].click();}
function cbt2(letter, newText) {var buttons2 = session + "/BUTTON.999-999=*"
+ letter; document.getElementsByName(buttons2)[0].value=newText;} function
fm(msg) {if (msg=='0') {msgt=" "} else if (msg=='1') {msgt="OR double
left click on link to navigate"} else if (msg=='2') {msgt="OR double click
to continue"} else if (msg=='3') {msgt="OR double click to Navigate or
Single click and then select option"} else if (msg=='4') {msgt="OR double
click for details or Single click and click on Navigate"} else
if (msg=='5') {msgt="OR single click and select Option"} else if (msg=='6')
{msgt="Type . in main box and ENTER (you can follow . with index name)"}
else if (msg=='9') {msgt="Or hover over highlighted links or images for
instructions"}
javascript:document.getElementById('popupText').innerHTML=msgt;} function
fr(num) {document.getElementsByName('NAM64I')[0].value = num;} function
DoOnLoad(){fm(9); document.getElementsByName('NAM64I')[0].focus();}
</script><style>A:link {color:#00A5C6;text-decoration:none;} A:visited
{color:blue;text-decoration:none;} A:hover
{color:cyan;text-decoration:underline;}</style>
<pre><font color="WHITE">STIPPLE IV<font size="-1" color="RED"> (An ERROS
Application) <tt><font size="-0" color="BLUE">
Test <br>
</font></tt><font size="-0" color="BLUE"><font color="BLUE">Stipple
biographical function <br> <font color="WHITE">engraver
<br> <font color="BLUE">index of names
<br> name(s) include
<font color="#ffff00"> Public Data </font> <input name="NAM64I" value="
" size="64" maxlength="64" type="text">
<tt></tt><table><tbody><tr><td width="900" bgcolor="YELLOW"><tt> Type No. of
record (or full or partial record ID) &amp; press ENTER</tt></td><td
bgcolor="WHITE"><a href="#" onmouseover="fm(6)" onmouseout="fm(9)" ;=""><u>
INDEX</u></a></td></tr><tr><td id="popupText" bgcolor="yellow">Or hover over
highlighted links or images for
instructions</td></tr></tbody></table><tt><font color="BLACK"><br> <br>
<br><tt><font color="RED">(Roll_up for
more)
<br><font color="WHITE"> 1 <a href="#" onmouseover="fm(3)"
ondblclick="fr(1); fd()" onclick="fr(1); fm(4)" onmouseout="fm(9)" ;="">A
Gabrieli</a><br> 2 <a href="#" onmouseover="fm(3)" ondblclick="fr(2); fd()"
onclick="fr(2); fm(4)" onmouseout="fm(9)" ;="">Amedeo Gabrielli</a><br> 3
<a href="#" onmouseover="fm(3)" ondblclick="fr(3); fd()" onclick="fr(3);
fm(4)" onmouseout="fm(9)" ;="">L. Gahagan</a><font color="NAVY"> Artist
&amp; lithographer<br><font color="WHITE"> 4 <a href="#"
onmouseover="fm(3)" ondblclick="fr(4); fd()" onclick="fr(4); fm(4)"
onmouseout="fm(9)" ;="">René Gaillard</a><br> 5 <a href="#"
onmouseover="fm(3)" ondblclick="fr(5); fd()" onclick="fr(5); fm(4)"
onmouseout="fm(9)" ;="">Gainer,J</a><br> 6 <a href="#" onmouseover="fm(3)"
ondblclick="fr(6); fd()" onclick="fr(6); fm(4)" onmouseout="fm(9)"
;="">Thomas Gainsborough R.A.</a><br> 7 <a href="#" onmouseover="fm(3)"
ondblclick="fr(7); fd()" onclick="fr(7); fm(4)" onmouseout="fm(9)"
;="">Galand,Francois</a><br> 8 <a href="#" onmouseover="fm(3)"
ondblclick="fr(8); fd()" onclick="fr(8); fm(4)" onmouseout="fm(9)"
;="">Gale,R.L.</a><br> 9 <a href="#" onmouseover="fm(3)" ondblclick="fr(9);
fd()" onclick="fr(9); fm(4)" onmouseout="fm(9)" ;="">Gale,R.T.</a><br> 0 <a
href="#" onmouseover="fm(3)" ondblclick="fr(10); fd()" onclick="fr(10);
fm(4)" onmouseout="fm(9)" ;="">Elisha Gallaudet</a> <br><br> <br><font
color="GREEN">Server=<font color="WHITE">ERROSV <font
color="WHITE">!OFF<font COLOR="GREEN">=Sign_off </font>
</pre></form></body></html>

2009/1/8 Walden H. Leverich <WaldenL@xxxxxxxxxxxxxxx>

You mention that each link has a onmouseover, ondblclick, onclick and
onmouseout... those are the handlers I'm referring to. Can you post an
example of several links? I'm wondering if that can be much simpler.

-walden

--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)
--
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:
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.