Giter Site home page Giter Site logo

Comments (2)

marcuswestin avatar marcuswestin commented on June 16, 2024

Interesting!

First of all, what did you have to do to make it work? I'm curious and hope others may learn from your work as well.

Second, let me see if I understand right: A) you have an html file which loads wvjb without a problem - this file does not have an iframe in it. B) you put an empty iframe in the file from A, and this breaks WVJB.

Is that correct?

I have a suspicion about what's going on: wvjb uses iframes to communicate from js to objc that there are new messages to fetch. I'm not sure what you mean by "empty", but there may very well be interference.

To better understand, what do you mean by empty? Could you by any chance put up an example project on github which has this problem? It would make it a lot simpler for me to debug the problem.

Cheers!

Marcus 
-- while mobile

On Mon, May 26, 2014 at 12:33 PM, Noxalus [email protected]
wrote:

Hello again,
I finally successfully compile the WebViewJavascriptBridge in C++ and I can now use it, but I still have a problem.
The library works well when I tried with a simple HTML page but if I put an empty iframe, I can't send messages like before, it can't find the variable WebViewJavascriptBridge.
In fact, the file WebViewJavascriptBridge.js.txt is loaded after I try to send my message instead of without the empty iframe, this file is loaded before.
Do you know why ?

Thanks in advance.

Reply to this email directly or view it on GitHub:
#82

from webviewjavascriptbridge.

Noxalus avatar Noxalus commented on June 16, 2024

Thanks for your answer!

To respond to your first question about the (objective-)C++ compilation of the library, I'm currently using the solution that I gave in the edit of this issue: #81

And to come back to this issue, I've been a little to quick, I could resolve this problem myself. It was just a question of loading time.

Thanks again and have a nice day ;)

from webviewjavascriptbridge.

Related Issues (20)

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.