Coder Social home page Coder Social logo

Comments (3)

deleolajide avatar deleolajide commented on July 18, 2024 1

and in this line it seems tp referr to a path relative to the index.html

Loading JavaScript dynamically is always problematic with deployment paths. Feel free to modify vmsg.js for your own use. It will difficult to set a generic path that works for all.

from community-plugins.

deleolajide avatar deleolajide commented on July 18, 2024

This is what I get in chrome

image

vmsg-lib.js:426 Error: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

This is an expected message because my web server does not send back the correct mime http header for wasm

from community-plugins.

poVoq avatar poVoq commented on July 18, 2024

Well it seems like the issue is also the path. I have my plugins under a /plugins/ subdirectory, and in this line it seems tp referr to a path relative to the index.html

'<div class="modal-body"><iframe id="iframe-vmsg-' + id + '" src="vmsg/index.html" style="width:100%; height:300px; border:none; margin:0; padding:0; overflow:hidden;"></iframe></div>' +

I guess it is quite common to place the plugins in a subdirectory. I have seen the same with Pade.

from community-plugins.

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.