Bug Tracker

Ticket #3637 (new bug)

Opened 2 months ago

Last modified 2 months ago

Local scripts loaded using getScript isn't available (directly) in Firefox 3

Reported by: sandstrom Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.3 Component: ajax
Version: 1.2.6 Keywords: firefox, getscript
Cc: sandstrom Needs: Test Case

Description

Local scripts loaded using getScript isn't available (directly) in Firefox 3.

See these three threads for discussions on the problem:

http://groups.google.com/group/jquery-en/browse_thread/thread/a1c82c2226f781 http://www.nabble.com/$.getScript-in-Firefox-3-td18108981s27240.html http://www.henrytapia.com/archives/2008/04/22/load-only-the-jquery-plugins-you-need-when-you-need-them/ (at the end)

// this is one way of fixing the problem $.getScript = function(url, callback){

if ($.browser.mozilla) {

var _callback = callback; callback = function () {

setTimeout(function(){

_callback();

}, 50);

};

}

$.ajax({

type: "GET", url: url, success: callback, dataType: "script", cache: cache

});

};

Attachments

Change History

Changed 2 months ago by flesler

  • cc set to sandstrom
  • need changed from Review to Test Case

Ok, I read the article. Nothing close to a solution is presented. The best we can do is keep that article alive and get to a fix.

We need, at least, a minimalistic test case to reproduce the problem.

Note: See TracTickets for help on using tickets.