jQuery JavaScript Library v1.4.2-bog1

By Bogleg Last update Apr 12, 2010 — Installed 152,241 times.

Add your review

1 review


1 out of 1 person found this review helpful
5 stars
thank you , May 4, 2010
Review written by krwq - see all my reviews (1)

that you have uploaded it :) this bug was really annoying. this is how i did it before (copied from the internet&pasted&modified):

// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.min.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);

// Wait until jQuery is loaded
GM_JQWait(onJQLoaded);

function GM_JQWait(onjqloaded)
{
  if (typeof unsafeWindow.jQuery == 'undefined')
   { 
    window.setTimeout(function() { GM_JQWait(onjqloaded); },100);
   } else
   {
    $ = unsafeWindow.jQuery;
    onjqloaded();
   }
}

function onJQLoaded()
{
  // function using jQuery
}

but i cannot use xmlhttprequest with that

0 comments |