Re: [Webwork-user] OnChange on ui:select
Brought to you by:
baldree,
rickardoberg
From: Scott F. <sc...@at...> - 2002-11-05 22:12:25
|
You need to escape the code with quotes: onchange=3D"'sendCommand(this.forum, "load")'" Otherwise it tries to find it on the valuestack. Same reason that you=20 escaped "'Country'". Cheers, Scott Manuel Alzola wrote: > Hello. I have a problem with the <ui:select> tag. I need to execute som= e=20 > javascript code when selection changes. I have figured out that the=20 > attribute onchange is a placeholder for the function. The page compiles= =20 > without errors but doesn=B4t emit the code in the page. Here is the pie= ce=20 > of code in the page: > =20 > <ui:select label=3D"'Country'" name=3D"'country'"=20 > list=3D"@contriesList/countries" > listKey=3D"'code'" listValue=3D"'name'" > onchange=3D"sendCommand(this.form,'load')"/> > Any idea? > Thanks in advance > Manuel Alzola > =20 --=20 ATLASSIAN - http://www.atlassian.com Expert J2EE Software, Services and Support ------------------------------------------------------- Need a simple, powerful way to track and manage issues? Try JIRA - http://www.atlassian.com/software/jira |