I am trying to run the javascript framework XUI, but cannot make it work on any desktop browser. Read more about XUI here ... http://xuijs.com/documentation
<script type='text/javascript' src='xui-more-1.0.0.min.js'></script> <!-- <script type='text/javascript' src='xui-bb-1.0.0.min.js'></script> --> <script> x$('button').click(function(e){ alert('tee hee!'); }); x$('a.navigation').css({ background:'yellow' }); alert("at least this works!"); </script> <a href='http://google.com' class='navigation' >this is a link</a> <br><br> <input type='button' id='button' value='click me!'>
You need to wrap your code in a "ready" function:
<script type="text/javascript"> xui.ready(function() { // x$ code in here... }); </script>
Here you go, this is an example
x$(window).on('load', function() { x$('#button').click(function () { alert('Hello'); }); });
Robert - no errors, but it doesn’t work!
to try:
x$('#img_del1').on( 'click', function(e){
Also move js to the bottom of the page.
I did not find the equivalent for $ (document) .ready () in XUI.
Source: https://habr.com/ru/post/1765261/More articles:Проблема с вызовом Ajax с перекрестным доменом с использованием JQuery WCF REST Starter Kit Preview 2 - jqueryCan you have an Excel macro to automatically save a copy in CSV format - excel-vbaHow to add JSONP support in .NET 3.5 WCF REST JSON - jsonpthe value is not inserted into the text box, does it work two days ago? - javascriptWhat is the advantage of IDA than visual studio when disassembling dll? - disassemblyForced IDA decompiler to use a different signature of functions of static functions in namespaces - c ++Custom Painting JPanel - javaЕсть ли способ узнать, успешно ли отправлено электронное письмо с помощью С#? - c#Как определить путь exlorer.exe в .NET? - c#How to use API documentation - javaAll Articles