Login  Register

Re:

Posted by Alessandro Vernet on Dec 16, 2009; 11:56pm
URL: https://discuss.orbeon.com/no-subject-tp965448p965659.html

Martin,

So compared to what the xforms:select does out of the box, you need the list of selected values to be coma separated, rather than space separated as the xforms:select does "by default"?

Alex

On Dec 16, 2009, at 10:27 AM, "Schwartzman, Martin" <[hidden email]> wrote:

How do you call a JavaScript function from within a <xforms:select/> on the "xforms-value-changed" event? I've attached a sample view.xhtml where I get the below error when I try to run it:
 
XML Parsing Error: no element found
Location: http://localhost:8080/orbeon/xforms-sr/view.xhtml?order-id=256
Line Number 1, Column 1:
 
What I need to be able to do is create a comma separated list of item labels that were chosen in the <select/> control and insert it into the select ref="serverOperatindSystem" elements label attribute. Any ideas on the best way to do this (if not via JavaScript) would be greatly appreciated.
 
 
Thanks.
 
Martin Schwartzman
 
<view.xhtml>

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet