Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

<s:select onchange="changeAmt()"> not working

Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using struts 2..
I want tabs on my jsp
and my code is..
On first Jsp i used to create tabs which works fine for me.

<s:tabbedPanel id="test" labelposition="middle" >
<s:iterator value="teamlist">
<s:url id="resultsUrl" action="navigateChangeTeamAction.action" >
<s:param name="teamCode" value="teamCode" />
<s:param name="teamName" value="teamName"></s:param>
<s:div label="Team2" theme="ajax" labelposition="center" href="%{resultsUrl}">

after executing navigateChangeTeamAction.action
now on my tabbed jsp code is as...

<s:select name="teamEmpNameCombo"
listValue="employeeName" headerKey="1" headerValue="Select" multiple="true"
onchange="select(this.form);" theme="simple" >

but onchage javascript function select() not called. not giving any error.
if i put alert("Hi"); instead of select() it gives me alert message.

Please help me?? I don't know why my javascript function is not getting call??
Posts: 9674
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mamata I think you should provide the code for your javascript method here so that we can see it. Also try to debug the method either using any tool like firebug or putting alert messages inside the method (like as the first statement) to see if the method is getting called. Also I've never used this tag before so can you please check the source of the generated page to see if this tag renders frames in the generated page in the browser...
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please UseCodeTags.
rubbery bacon. crispy tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic