Comments (6)
Ahhh yeah I think I'm finding that too. Honestly though new tab is not a bad alternative. Thanks for your help here @enuchi and appreciate all the work you've put into this library!
from react-google-apps-script.
@WillLiuMH sounds like it's happening when you are working in local development. Does it happen when you deploy the app (npm run deploy
)?
from react-google-apps-script.
Hey @enuchi, yeah I'm getting the same issue in both the development and deployed versions. I just need get that attribute set on the iframe somehow and I think it should be good, but just scratching my head at how to do that...
Also just wanted to say thanks for writing this library. It's been kick ass so far!
from react-google-apps-script.
Glad it's been helpful to you!
If I understand what's happening correctly then you are not going to be able to modify the top level iframe because Google does not expose that capability. I don't believe you're able to navigate to another page within the iframe -- can you take a look here? https://developers.google.com/apps-script/guides/html/restrictions#restrictions_in_iframe_mode
What happens if you add a link with the target="_top" attribute?
<a href="http://google.com" target="_top">Click Me!</a>
from react-google-apps-script.
Hmmm I tried that, no change. Looking at the article you linked, the _top
attribute is actually supposed to go into the tag in the html sheet, which you already had there. I feel like there's got to be a way to add a link to a google sheets web app!!!
from react-google-apps-script.
I don't think it's going to work. I'm guessing Google really doesn't want you to navigate to another page within its UI, for security reasons. Your best bet is to launch your page in a new tab with target _blank: <a href="http://www.yourpage.com" target="_blank">
from react-google-apps-script.
Related Issues (20)
- Can we migrate to vite? HOT 4
- White (blank) sidebar in Chrome when using Station wallet Chrome extension HOT 12
- How to use shadcn/ui HOT 1
- Issue: app is not loaded when I deploy, but does work with HMR HOT 2
- I want to use fast refresh without https
- How to deploy a google workspace addon using this? HOT 6
- Is it possible to pass initial state to React root component? HOT 3
- Uncaught ReferenceError: react is not defined HOT 1
- Typescript support for custom functions HOT 14
- Seeing "Running script" with "Cancel" and "Dismiss" instead of "Working" when executing opening the sidebar HOT 2
- Support for NextJs HOT 4
- Uncaught ReferenceError: emotionReact is not defined at 9291 (userCodeAppPanel:2:53729) HOT 5
- JSdocs Autocomplete not working as expected HOT 9
- ReferenceError: TextEncoder is not defined : how to diagnose a solution HOT 3
- TypeScript support for TableCell.setBold() TableCell.setFontSize() HOT 1
- Solution for webapp react-router sync with google.script.history (Client-side API) HOT 3
- How to expose an Appscript ServerFunction to the user for attaching as a script? HOT 3
- How to create custom functions in V3 version? HOT 5
- [Q] Any breaking change while migrating from V2 webpack to V3 vite? HOT 2
- Close dialog in Development Mode using google.script.host.close() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-google-apps-script.