Allowing liveSend on other pages

89 views
Skip to first unread message

Max R. P. Grossmann

unread,
Jun 7, 2021, 9:11:18 AM6/7/21
to ot...@googlegroups.com
Hi all,

Is there a way to allow liveSend() on pages other than that which the participant is on?

I want subjects to look at a table that contains some input from other subjects. This table updates in real time. I want them to be able to keep this tab open while continuing with the experiment (the page with the updating table has target="_blank" in the form, i.e. clicking "next" continues in a new tab).

However, this doesn't work and oTree logs the following message:

Ignoring liveSend message from […] because they are on page Results, not ShowTable.

Any ideas?

Thanks,

Max

Chris @ oTree

unread,
Jun 7, 2021, 11:34:46 AM6/7/21
to Max R. P. Grossmann, ot...@googlegroups.com
They have to be on the same page, sorry. (Though maybe you can still JS to change the content of the current page so it feels like they are on a new page)

Sent from my phone

> On Jun 7, 2021, at 7:11 AM, 'Max R. P. Grossmann' via oTree help & discussion <ot...@googlegroups.com> wrote:
>
> Hi all,
> --
> You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/20210607131114.nv3a475tx7up5b4e%40grossmann.io.

Chris @ oTree

unread,
Jun 7, 2021, 11:40:42 AM6/7/21
to Max R. P. Grossmann, ot...@googlegroups.com
the idea is to make it more like a single page app. This can be done by tracking the state of the player in a player field, and just have a live method that can handle more cases.

Sent from my phone

> On Jun 7, 2021, at 9:34 AM, Chris @ oTree <ch...@otree.org> wrote:
>
> They have to be on the same page, sorry. (Though maybe you can still JS to change the content of the current page so it feels like they are on a new page)
> To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/53FCEB22-C839-4626-B9CF-9C71FDB4C2D4%40otree.org.

Max R. P. Grossmann

unread,
Jun 7, 2021, 11:45:14 AM6/7/21
to Chris @ oTree, ot...@googlegroups.com
Thanks, Chris. Would using an iframe be a solution? Perhaps I could target the form destination to live in the iframe, which lies below my table...

7 Jun 2021 17:40:45 Chris @ oTree <ch...@otree.org>:
> To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/8CEAC6B0-8E02-46C5-BD95-3A6C205D6CE6%40otree.org.

Chris @ oTree

unread,
Jun 7, 2021, 11:49:20 AM6/7/21
to Max R. P. Grossmann, ot...@googlegroups.com
oTree is not designed for a participant to be in multiple pages at the same time (actually it actively resists this), so that may be a challenge.

Sent from my phone

> On Jun 7, 2021, at 9:45 AM, 'Max R. P. Grossmann' via oTree help & discussion <ot...@googlegroups.com> wrote:
>
> Thanks, Chris. Would using an iframe be a solution? Perhaps I could target the form destination to live in the iframe, which lies below my table...
> To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/fe7962f0-c053-4ab0-bc39-3eb0f8fd875d%40max.pm.

Reply all
Reply to author
Forward
0 new messages