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



That is very old stuff (pre-5126), the ideas are still good but the
implementation may not be right in sync with what is there now. I would
use the newer (versioned) javascript calls as I don't know the
implications of using the older (unversioned) form. I know we wrote some
adapter calls to try and handle them but YMMV..

Mike


Mike Hockings, P.Eng.
System i Application Development Tools - CODE/Designer & WebFacing !
IBM Canada Ltd. Laboratory
hockings@xxxxxxxxxx
voice 905 413 3199

wdsci-l-bounces@xxxxxxxxxxxx wrote on 01/08/2008 06:36:56 PM:

Hi Mike,

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
java
script that allows me to not only select MenuDDS menu items, but also
gives
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;}-->

</STYLE>


<DIV ONMOUSEOVER="this.style.background='yellow';"

ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
;" onClick="toggleMenu('menux1')" class=itemx>Item Maintenance</DIV>
<DIV class=menux id="menux1">

<PRE>

<SPAN class=itemz ONMOUSEOVER="this.style.background='yellow';"

ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
;" onClick="setOptionAndSubmit('1');">
Add Items
</SPAN>

<SPAN class=itemz ONMOUSEOVER="this.style.background='yellow';"

ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
;" onClick="setOptionAndSubmit('2');">
Change Items
</SPAN>

<SPAN class=itemz ONMOUSEOVER="this.style.background='yellow';"

ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor
;" onClick="setOptionAndSubmit('3');">
Remove Items
</SPAN>

</PRE>

</DIV>



-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On
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 like
<wf:js function="setOptionAndSubmit"/>('1','SCREEN');
as the JavaScript to call for the menu text action hyperlink (the 1 is
the
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 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.