Calling JavaScript in repeated sections

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling JavaScript in repeated sections

HankRatz

Hi,

I create select elements in a repeat block.  This looks similar
to the GMail interface.  When the user clicks the check boxes to
select and un-select, I want to call a JavaScript function -- once.

But since the selects are all bound to the same content, they
all get the same value-changed event.

There is no way to put an action element on an instance, right?

Thanks for your thoughts,
Hank

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
Reply | Threaded
Open this post in threaded view
|

Re: Calling JavaScript in repeated sections

HankRatz

OK, since a hidden input control is required to get the
value into JavaScript with OREON.xforms.document.getValue(),
why don't I put the event onto that single control that
shares the same binding as all the check boxes?

(Team programming?  How about the team of Larry, Curly and
Mo to rap my knuckehead.)

Problems solved, thanks.

--Hank


On Feb 17, 2010, at 4:00 PM, Hank Ratzesberger wrote:

>
> Hi,
>
> I create select elements in a repeat block.  This looks similar
> to the GMail interface.  When the user clicks the check boxes to
> select and un-select, I want to call a JavaScript function -- once.
>
> But since the selects are all bound to the same content, they
> all get the same value-changed event.
>
> There is no way to put an action element on an instance, right?
>
> Thanks for your thoughts,
> Hank
>
> Hank Ratzesberger
> NEES@UCSB
> Institute for Crustal Studies,
> University of California, Santa Barbara
> 805-893-8042
>
>
>
>
>
>
> --
> 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
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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