Hi Shireesha,
If I understood you correct, I'm afraid...you are asking a very basic
javascript related topic which can be found by a little bit of Googling or
by browsing w3schools.com.
Well, to save that minute of research for you I'm giving the code.(infact
the same task took me more than a day when I was a too fresh learner in web
development :) )
var ExValSet = window.exhibit.getComponent("facet-x")._valueSet.toArray();
//assigns the array to ExValSet
var urForm = document.yourForm; //assuming that you have a from named
'yourFrom'
var urHiddenEle = urForm.yourHiddenInput; //a hidden input element named
yourHiddenInput
for(var i=0; i<ExValSet.length;i++) //loops through the array and prepares a
comma separated string
{
if(i != 0)
{
urHiddenEle.value += ',';
}
urHiddenEle.value += ExValSet[i];
}
urForm.submit();
Regards,
Ravi.
On Mon, Mar 23, 2009 at 11:09 PM, shireesha06 <[email protected]>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.
> >
>
--
A day is a wonderful blessing,
Either stormy or sunny,
It stands for hope,
Giving us another chance of what we call *L*I*F*E*.
Live a beautiful LIFE.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---