Bug Tracker

Modify

Ticket #777 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

Description (last modified by john) (diff)

<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

comment:1 Changed 6 years ago by john

  • Priority changed from trivial to minor
  • Version 1.1 deleted
  • Milestone 1.1 deleted

comment:2 Changed 6 years ago by john

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

comment:3 Changed 6 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN rev [2428].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.