We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
moosterbaan
5 years agoHelpful | Level 6
Dropbox Embed Excel Sheet support
We are using the new Dropbox embedder to show files on our website. It is working overall, with the exception of excel sheet tabs. The excel sheet loads correctly, but on mobile devices the user cannot switch excel worksheets/tabs. There is an overlay menu that has buttons to switch to full screen or to print. I believe that the overlay is preventing tabs to be switched. If you switch to full screen mode, it is possible to switch worksheets.
Here is the code that is being used:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="myAppKey"></script> <script type="text/javascript"> </script> <style> body, html, form { width: 100%; height: 100%; margin: 0; padding: 0 } .row-container { display: flex; width: 100%; height: 100%; flex-direction: column; overflow: hidden; } .row { flex-grow: 1; border: none; margin: 0; padding: 0; } </style> </head> <body> <form id="form1" runat="server" style="text-align:center"> <div class="row-container"> <a id="theFrame" class="dropbox-embed row"></a> </div> </form> </body> </html> <script type="text/javascript"> let theFrame = document.getElementById('theFrame'); Dropbox.embed({ link: "https://www.dropbox.com/mysharedlink.xlsx?dl=0" }, theFrame); </script>
I decided to try this again, and am happy to report that this is now working as expected.
- Greg-DBDropbox Staff
Thanks for the report! We'll look into it.
By the way, the Embedder offers two different ways to set it up:
You only need to use one or the other, but it looks like you're currently trying to use both. That is, you have both the "dropbox-embed" class on an anchor, as well as using 'Dropbox.embed' to set the embed on that same element. To avoid complications, please just use one of the two methods.
- moosterbaanHelpful | Level 6
Thank you for looking into it.
I updated our code to use the Javascript method only.
- moosterbaanHelpful | Level 6
I decided to try this again, and am happy to report that this is now working as expected.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!