dynamic-script-loading

JavaScript script dynamic script loading IE6 issue

I am using an in house custom library to replicate jsonp calls. Before you guys ask me to use JQuery or other libraries, let me tell I cannot use it due to some constraints. Below is the code used to make the request: BurrpJsonAjaxRequest.prototype.send = function() { this.script = document.createElement("script"); this.script....

Dynamic script addition should be ordered?

Hi, I'm adding some <script> tags dynamically to the head element after page load. I understand the scripts are loaded asynchronously, but can I expect them to be parsed in the order they are added? I'm seeing the expected behaviour in Firefox, but not in Safari or Chrome. Looking at the document in Chrome developer tools and Firebug, ...

Howto disable client script block server side (asp.net)

I have js script block (very long one that does editing capabilities to an invoice page). I want to enable/disable this functionality on the server-side. First thing popped up on my mind was to say runat="server" to the tag, and set visible=true/false to asp.net, thinking asp.net does not render the HTML for non-visible items, so the b...