Re: Adding unique IDs in xforms with JS
Posted by
Alessandro Vernet on
Oct 27, 2009; 1:52am
URL: https://discuss.orbeon.com/Adding-unique-IDs-in-xforms-with-JS-tp277068p277110.html
Stephanie,
On Mon, Oct 26, 2009 at 1:22 PM, Stephanie Hall (TT)
<
[hidden email]> wrote:
> <div id=”div_3”>…</div>
You can just keep your div as is, and each iteration will
automatically have the id you specified followed by a separator,
followed by the index of the iteration (starting with 1). The
separator is a special character, and I recommend you use
XFORMS_SEPARATOR_1. So in JavaScript to access fourth iteration, you'd
write: "div_3" + XFORMS_SEPARATOR_1 + "4".
Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog:
http://www.orbeon.com/blog/My Twitter:
http://twitter.com/avernet--
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