Bug Tracker

Modify

Ticket #8249 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

$.getScript Fails Locally in 1.5

Reported by: acarr@… Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.5
Keywords: Cc:
Blocking: Blocked by:

Description

$.getScript() seems to not be executing the script or any callback methods in 1.5. When jQuery is replaced with 1.4.4 all works as expected.

The new jqXHR Object is created and does include the responseText property set with the string representation of the requested JS file but no optional return methods are fired and the response text is not executed.

Bug was reproduced in Firefox 3.6.13 on Windows 7.

Steps to reproduce: On page load, run:

$.getScript('aScript.js');

Creating a signifier in 'aScript.js' such as an alert dialog will show in jQuery 1.4.4 but not in jQuery 1.5

Change History

comment:1 Changed 2 years ago by jitter

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to ajax

comment:2 Changed 2 years ago by jitter

Duplicate of #8166.

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.