|
Hi Mike,java
I found (don't know how I missed it the first couple of searches...but I
did) the "Mastering Web Facing" red book, and in it, I found some great
script that allows me to not only select MenuDDS menu items, but alsogives
some nifty examples for rollover functions which really dress it up.
http://www.redbooks.ibm.com/abstracts/sg246331.html?Open
Here's the java script, for example:
<STYLE TYPE="TEXT/CSS">
<!--.menux {display:none; margin-left:20px;z-index: 3}.itemx
{background-color: white; font-family:Times New Roman;font-size :
15pt;\r\ncursor: pointer; cursor: hand;}.itemz {background-color:
white; font-family : Times New Roman;font-size : 14pt; cursor:
pointer;cursor: hand;}-->ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
</STYLE>
<DIV ONMOUSEOVER="this.style.background='yellow';"
;" onClick="toggleMenu('menux1')" class=itemx>Item Maintenance</DIV>ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
<DIV class=menux id="menux1">
<PRE>
<SPAN class=itemz ONMOUSEOVER="this.style.background='yellow';"
;" onClick="setOptionAndSubmit('1');">ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
Add Items
</SPAN>
<SPAN class=itemz ONMOUSEOVER="this.style.background='yellow';"
;" onClick="setOptionAndSubmit('2');">ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
Change Items
</SPAN>
<SPAN class=itemz ONMOUSEOVER="this.style.background='yellow';"
;" onClick="setOptionAndSubmit('3');">On
Remove Items
</SPAN>
</PRE>
</DIV>
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
Behalf Of Mike Hockings
Sent: Tuesday, January 08, 2008 4:35 PM
To: Websphere Development Studio Client for iSeries
Subject: Re: [WDSCI-L] WebFacing - Create Hyperlink for MNUDDS
Hmmm, I'll have to ponder this.
As a cheap work-around for now (if you are using a current release) you
could try putting something something likethe
<wf:js function="setOptionAndSubmit"/>('1','SCREEN');
as the JavaScript to call for the menu text action hyperlink (the 1 is
menu option numer).
Mike
Mike Hockings, P.Eng.
System i Application Development Tools - CODE/Designer & WebFacing !
IBM Canada Ltd. Laboratory
hockings@xxxxxxxxxx
voice 905 413 3199
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.