/* ** jquery.xsajax.js -- jQuery plugin for Cross-Site AJAX-style Javascript loading ** Copyright (c) 2007 Ralf S. Engelschall ** Licensed under GPL ** ** $LastChangedDate$ ** $LastChangedRevision$ */ (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