Create some sort of unique delimiter in your response data string to
separate the elements, such as "~".
Then turn the string into an array using (use your own variable
names):
mydata = myResponseText.Split('"~")
mydata[0] will contain the first element, mydata[1] the second etc.
On Aug 27, 2:27 pm, S <[EMAIL PROTECTED]> wrote:
> After doing some readings, I'm still not sure of how to use
> evalsciprts:true to get multiple data from server side. I need to
> store the data that I got from the server side through
> Ajax.PeriodicalUpdater and process them later. So I was thinking of
> creating an array on the PHP side and pass it to the container part of
> Ajax.PeriodicalUpdater. But I can't seem to pass the array to
> Javascript. Any suggestions?
>
> On Aug 27, 11:43 am, Diodeus <[EMAIL PROTECTED]> wrote:
>
> > You could embed javascript statements in thedataand use
> > evalscripts:true, and have the embedded script update other elements
> > but there are more elegant ways to do this.
>
> > You would be better off just grabbing JSON or XMLdataand writing a
> > function to perform your updates instead of just putting the result in
> > a DIV directly.
>
> > On Aug 24, 4:58 pm, S <[EMAIL PROTECTED]> wrote:
>
> > > Is it possible to retrievemultipledatawith a single
> > >Ajax.PeriodicalUpdaterexecution? Is there any good example on this?
> > > Thanks.
>
> > > S- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---