Giter Club home page Giter Club logo

Comments (4)

coderextreme avatar coderextreme commented on June 7, 2024

As of latest and 4.2.1

from x_ite.

create3000 avatar create3000 commented on June 7, 2024

Made a small test but it works:

<!DOCTYPE html>
<html>
   <head>
    <meta charset="utf-8"/>
    <link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/create3000/x_ite/4.2.1/dist/x_ite.css"/>
    <script type="text/javascript" src="https://cdn.rawgit.com/create3000/x_ite/4.2.1/dist/x_ite.min.js"></script>
    <style type="text/css">
X3DCanvas {
  width: 768px;
  height: 432px;
}
    </style>
    <script type="text/javascript">
function load_X_ITE_XML(content, selector) {
  X3D(function() {
    var browser = X3D.getBrowser(selector);
    browser.replaceWorld(browser.createX3DFromString(content));
  }, function() {
    alert("Failed to render XML to X_ITE");
  });
}
  </script>
  </head>
  <body>
    <X3DCanvas src="scene.x3d">
      <p>Your browser may not support all features required by X_ITE!</p>
    </X3DCanvas>
    <button onclick="load_X_ITE_XML('<Shape><Sphere/></Shape>', 'X3DCanvas')">click me</button>
  </body>
</html>

from x_ite.

coderextreme avatar coderextreme commented on June 7, 2024

from x_ite.

coderextreme avatar coderextreme commented on June 7, 2024

Ah, I see, they are http, I guess. Sorry.

John

from x_ite.

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.