potreboval by som poradit ako osetrit spustenie javascriptu, ktory mi vsade funguje vo vsetkych prehliadacoch aj mozilla, chrome, IE 6 a 7 ale v novom IE8 uz nefunguje.
Vypisuje chybu: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Skript vyzera takto:
Kód: Vybrať všetko
<script type="text/javascript">
function init() {
if (arguments.callee.done) return;
arguments.callee.done = true;
ModuleSearchAjaxVertical();
};
/* for Mozilla */
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", init, false);
}
/* for Internet Explorer */
/*@cc_on @*/
/*@if (@_win32)
document.write("<script defer src=ie_onload.js><"+"/script>");
/*@end @*/
/* for other browsers */
window.onload = init;
</script>Kód: Vybrať všetko
init();