Code Monkey home page Code Monkey logo

Comments (9)

princemaple avatar princemaple commented on July 21, 2024

/cc @zendesk/quokka

from demo_apps.

gs-akhan avatar gs-akhan commented on July 21, 2024

And extending to this question, I am hoping we are not allowed to hotlink any external JS files in handlebar partials ?
Please let me know if that is allowed thanks ?

from demo_apps.

atroche avatar atroche commented on July 21, 2024

@gs-akhan can you tell us more about what you're trying to do? and a little more context about what your app is?

from demo_apps.

princemaple avatar princemaple commented on July 21, 2024

iframe app is the closest they can get, basically.

from demo_apps.

danielbreves avatar danielbreves commented on July 21, 2024

@gs-akhan, accessing the window object from an app is not allowed. However, the framework does provide a wrapper for the postMessage API. Have a look at our documentation for Iframes in Apps and let us know if it solves it for you.

from demo_apps.

gs-akhan avatar gs-akhan commented on July 21, 2024

@atroche @danielbreves
We want to open window from the open for oauth purpose and then window which completes ouath, I send post message to zendesk app to reload itself.. This is the usecase.
And is hot linking external JS files in handlebar templates allowed, ?

Thanks

from demo_apps.

gs-akhan avatar gs-akhan commented on July 21, 2024

Any one on this ? thanks .
Otherwise I need to make our app as an "iframe" and then just include it in the handlebars template.

I can also make use of external JS libraries as well. If I am thinking correctly .

from demo_apps.

atroche avatar atroche commented on July 21, 2024

Hi @gs-akhan, you're going to have to use an iframe. Let us know how it goes!

from demo_apps.

danielbreves avatar danielbreves commented on July 21, 2024

@gs-akhan Hot linking external JS files in app templates is not allowed. But, of course, you can do whatever you like from an iframe. Make sure you include your iframe using the Handlebars framework helper {{ iframe "srcUrl" }}, as that will enable cross-frame communication with the SDK.

from demo_apps.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.