/* ** jquery.xsajax.js -- jQuery plugin for Cross-Site AJAX-style Javascript loading ** Copyright (c) 2007 Ralf S. Engelschall ** Licensed under GPL ** ** $LastChangedDate: 2007-04-13 12:45:27 +0300 (Fri, 13 Apr 2007) $ ** $LastChangedRevision: 35 $ */ (function($){ if ( $.browser.safari || navigator.userAgent.match(/Konqueror/i)) { $.extend({ _xsajax$node: [], _xsajax$nodes: 0 }); } $.extend({ getScriptXS: function () { /* determine arguments */ var arg = { 'url': null, 'gc': true, 'cb': null, 'cb_args': null }; if (typeof arguments[0] == "string") { /* simple usage */ arg.url = arguments[0]; if (typeof arguments[1] == "function") arg.cb = arguments[1]; } else if (typeof arguments[0] == "object") { /* flexible usage */ for (var option in arguments[0]) if (typeof arg[option] != "undefined") arg[option] = arguments[0][option]; } /* generate