Hi,
Is there a way to see if a script has already been downloaded before i
'download' it again?

i.e. i have this:

$(document).ready(function(){

  $("#editor").click(function(){
    $.getScript("/fckeditor/fckeditor.js", function(){
    $.rteditor("body,{ buttons: { Cancel: false, Submit: true } });
    });
  });

});

what this does is download the .js file and then calls my rteditor
obj.  But i would like to be able to do a test:

if user has downloaded "/fckeditor/fckeditor.js",  then
   call the rteditor obj.
else
   getScript(...) and call rteditor

so does anyone know how i would see if that script has been
downloaded?

thanks
seth

Reply via email to