issue with shinyapps.io iframe and window.location.hash

21 views
Skip to first unread message

Ryan Hafen

unread,
Oct 1, 2015, 7:01:19 PM10/1/15
to ShinyApps Users
I have an app that gets and tracks state using window.location.hash.  When deploying to shinyapps.io it gets put inside an iframe and this functionality goes away.  Is there a way to work around this?

Andy Kipp

unread,
Oct 2, 2015, 9:16:29 AM10/2/15
to Ryan Hafen, ShinyApps Users
You could trying using window.top.location which points to the parent frame.

-Andy

On Thu, Oct 1, 2015 at 7:01 PM, Ryan Hafen <rha...@gmail.com> wrote:
I have an app that gets and tracks state using window.location.hash.  When deploying to shinyapps.io it gets put inside an iframe and this functionality goes away.  Is there a way to work around this?

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/8da82852-1c88-401e-abc4-369ce9adb150%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages