Bug Tracker

Opened 13 years ago

Closed 13 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 john)

<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 13 years ago by john

Milestone: 1.1
Priority: trivialminor
Version: 1.1

comment:2 Changed 13 years ago by john

Description: modified (diff)
Milestone: 1.1.4
need: Review
Owner: set to john
Version: 1.1.3

comment:3 Changed 13 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [2428].

Note: See TracTickets for help on using tickets.