shireesha06 wrote:
> Hi,
> any one knows like how to print the values which are read by the
> toArrray() method.for example as David Hyuth said in the following
> code
>
> <div ex:role="facet" id="facet-x" ...></div>
>
> Then this gets you an array of the selected values
>
> window.exhibit.getComponent("facet-x")._valueSet.toArray()
>
> toArray() is going to hold the selected values how can we read/print
> those values to the next window/form.
>
> Thanks,
> Shireesha.
Hello Shireesha,
It's not clear to me what you mean by "next window/form", but toArray()
does exactly what its name advertises: it returns a Javascript array of
set members. Those members are pretty much always strings, and there's
nothing Exhibit-specific about the return value's data type.
It would probably be helpful for you to have an environment available to
simply type in a one-line method as above and get the answer back. Have
you tried Firebug? It provides a console for ease of... well,
everything web related, but it also provides an execution environment
for poking around with Javascript so you don't have to
edit/save/reload/alert just to find out something about the operation of
a method.
http://www.getfirebug.com/
--
Ryan Lee [email protected]
http://simile.mit.edu/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---