jquery - Using Prototype to load a JavaScript file from another domain -


Using prototype, anyone knows how to load a JavaScript file using Ajax.Request from another domain to be done? Or if it is possible?

I believe it is possible with jquery, Digg to do it for loading the Facebook API:

  jQuery.ajax ({type: "GET ", URL:" http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php ", cache: true, datatype:" script "});  

Source:

Without looking at the code, I'm assuming that the URL is smarts in jquery to use a proxy when violating the same basic policy And the data type script is

check out. It seems that a specific plug-in which enables the functionality in the prototype library, the author mentions that for example JQuery support is long, but it seems that this prototype is not supported by default.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -