• Post Reply Bookmark Topic Watch Topic
  • New Topic

javascript and netui tags  RSS feed

Julia Collins
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am creating a page using weblogic.

As part of the pageFlow scope I have declared a Map called countries.
These are country names keyed on the country code.

In the page I display the list of countries using:
<netui:select dataSource="{pageFlow.countries}" onChange="javascript:setCountryCode(document[getNetuiTagName('subscribe',this)][getNetuiTagName('countries',this)])" tagId="countries"></netui:select>

I want to use Javascript that sets another field wiht the country code whenever a country is selected from the drop down list.

I don;t seem to be able to access the key.
All I can send to the javascript is the value - ie the country name.

Please help.

[ December 20, 2004: Message edited by: Julia Collins ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!