Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello! I'm trying to embed jQuery UI in a project in HTML5. Added 2D Overlay and put on the event click on it "Execute JavaScript", such code. In the debugger, you can see that it adds elements, but the canvas itself stops responding to events (freezes) Code:
|
||||
|
Niko will have to answer this but I am not sure if Coppercube can compile Jquery. Mike |
||||
|
So jQuery is just a JavaScript libary so in theory its possible if you coppy and paste the entire jQuery code into your js file. But honestly jQuery is mostly for dom manipulation and Ajax calls all of which coppercube already has an api (and unless its a webgl then dom manipulation doesent work anyways) so especially for such a small code snippet I wouldn't think it's worth it. In your case it sounds like your trying to embed an html 5 canvas in a can 2d overlay. This will not work as coppercube engine is not a browser. |
||||
|
Example: http://sgusev.esy.es/ccb/jquery.... I'm trying to dynamically add libraries so that I can add GUI elements later. Open the page and see what he meant. First, check the camera (everything works here, that is, you can look in different directions) Next, you can open the Developer Console and see the page code. Then click on 2D Overlay and now try to look around. Does not work. In the console to the page, libraries are added. |
|