Hello out there! Hope this message isn't posted twice, but i can't see it in the mailing list two hours after posting it the first time ...
My problem: I want to show/hide a div element using the UI effects. In this div element there are JavaScript files included, it looks something like this: <img src="button.jpg" onclick="$('#mydiv').show(.....)" /> <div id="mydiv" style="display: none"> <script type="text/javascript" src="myscript.js"></script> <!-- more content ... --> </div> Everything works fine if the div is shown by default, but if i show the div element using the jQuery code above, the following problem occurs: jQuery reloads all JavaScript files again, using an Ajax request like this: myscript.js?_=124124786 < timestamp I think that jQuery does this because the JavaScript file could contain important content for the div, but it doesn't, it only holds classes. I tried the defer="defer" attribute for the <script> tag, but it doesn't work anyway. No problem in most cases, but some third-party files like the ones of TinyMCE or InnovaStudio color picker make Firefox go crazy. A white page is shown and the browser says it's loading and loading, but the request is already finished ... The main question is: How can i prevent jQuery from loading the script files again and again? It's not needed in my case ... Hope you can help me. Thanks in advance! Matthias