Re: Pulldown Menu and WOPopUpButton
Re: Pulldown Menu and WOPopUpButton
- Subject: Re: Pulldown Menu and WOPopUpButton
- From: Chuck Hill <email@hidden>
- Date: Fri, 21 Jul 2006 09:54:17 -0700
It is just a warning. You can just choose to ignore it. Another
option would be to make your own WOComponent subclass for this and
build the select using WOGenericContainer and WOGenericElement. As
this has no connection server-side, there is no need to use a
WOPopUpButton.
Chuck
On Jul 21, 2006, at 8:24 AM, Baiss Eric Magnusson wrote:
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:
40global-village.net
This email sent to email@hidden
--
Coming sometime... - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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