Hello!
Such a general problem: I make a gadget into which the content is loaded when the button is pressed, when the gadget is turned on, the load() function is activated in the body , which loads the information, but when the button is pressed, the same function doesn’t happen, here’s the code:
javascript
function load() { $.get("http://mirella8.ru/gadget/work.php?callback=", function (data) { $("#frame").html(data); }); } HTML
<body onload="load();"> <div id="frame"></div> <button onclick="load();" >Обновить</button> </body> The code is working, but does not work in IE, when the load() page loads, it works, but when you press the button, it does not. :(
alert('lol');to thecallbackalert('lol');And also check that conflicting scripts are not loaded into#frame. The probability of the presence of the "load" function in them is quite high) - Sh4dow