Pulldown Menu and WOPopUpButton
Pulldown Menu and WOPopUpButton
- Subject: Pulldown Menu and WOPopUpButton
- From: Baiss Eric Magnusson <email@hidden>
- Date: Fri, 21 Jul 2006 08:24:09 -0700
When I tried to use some JavaScript with a Pulldown Menu created with
WOPopUpButton I get:
<com.webobjects.appserver._private.WOPopUpButton> Warning: Avoid
using the 'value' binding as it is much slower than omitting it, and
it is just cosmetic.
I had set the value attribute in the WOPopUpButton to emulate the
standard Pulldown Menu from the JS example like:
<option value="#link02">Product Two</option>
so that the <onchange> attribute of the WOPopUpButton will call the
JS and the browser will jump the page to the anchor <#link02>.
Does anyone have a solution to this issue?
I can't just add an attribute to WOPopUpButton because the attribute
has to be part of each <option> line, rather than just the <select>
line.
The JS is:
function MM_jumpMenu( targ, selObj, restore ) {
eval( targ + ".location='" + selObj.options
[selObj.selectedIndex].value + "'");
if ( restore )
selObj.selectedIndex = 0;
}
To re-iterate, I need a dynamic Pulldown Menu which, when activated,
will use <MM_jumpMenu> to navigate the page to an anchor associated
with the appropriate product on the page.
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden