[ANN] RevLetObject javascript include.

Sarah Reichelt sarah.reichelt at gmail.com
Fri Oct 30 21:51:01 EDT 2009


On Sat, Oct 31, 2009 at 10:45 AM, Sannyasin Sivakatirswami
<katir at hindu.org> wrote:
>  Can the two revlets open on the same page talk to each other ?
>
>  i.e. can we do
>
> in the first stack... call it "eBook"
>
> on OpenTOC
>   go to card 1 of stack "Table of Contents"
> end openTOC
>
> where stack "Table of Contents" is the other stack?
>
> and then in Table of Contents we have a script for
>
> on clickLine
>   go to card  ( value of the clickline) of stack "eBook"
> end clickline


You can have two stacks open on the same page, if they share the same
instance ID. You need to set this ID in the HTML that displays the 2
stacks.
There is an example of this here
<http://revmedia.runrev.com/revWeb-samples/sketch/> where the 2 stacks
appear together and interact.

Cheers,
Sarah



More information about the use-livecode mailing list