Opened 16 years ago
Closed 16 years ago
#777 closed bug (fixed)
evalScripts() runs embed js befor previous external code
Reported by: | butterbrot | Owned by: | john |
---|---|---|---|
Priority: | minor | Milestone: | 1.1.4 |
Component: | ajax | Version: | 1.1.3 |
Keywords: | eval external javascript order | Cc: | |
Blocked by: | Blocking: |
Description (last modified by )
<script type="text/javascript" src="alert_hello.js"></script>
<script type="text/javascript">
alert("I dont know any 'alert_hello.js' function");
</script>
ALERT[I dont know any 'alert_hello.js] ALERT[Hello]
none-optional-solution:
evalScripts: function() {
var rv = function(html,rv){
if ( this.src ) { for some weird reason, it doesn't work if the callback is ommited
jQuery.getScript( this.src , function(source) {
html.find('script:first').remove().end(); html.find('script').each(rv,[html,rv]).end();
}); return false;
} else {
jQuery.globalEval( this.text this.textContent this.innerHTML "" ); }
} return this.find('script').each(rv,[this,rv]).end();
}
Change History (3)
comment:1 Changed 16 years ago by
Milestone: | 1.1 |
---|---|
Priority: | trivial → minor |
Version: | 1.1 |
comment:2 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Milestone: | → 1.1.4 |
need: | → Review |
Owner: | set to john |
Version: | → 1.1.3 |
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in SVN rev [2428].