≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
CopperCube and JQuery
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b]slagusev[/b] wrote: 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: [code] var head = document.getElementsByTagName("head")[0]; link = document.createElement('link'); /*link. = function() { // jQuery is available now };*/ link.rel = 'stylesheet'; link.href = 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css'; head.appendChild(link); script1 = document.createElement('script'); /*script1. = function() { // jQuery is available now };*/ script1.type = 'text/javascript'; script1.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'; document.body.appendChild(script1); script2 = document.createElement('script'); /*script2. = function() { // jQuery is available now };*/ script2.type = 'text/javascript'; script2.src = 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'; document.body.appendChild(script2); [/code][/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact