| 3352 | | Xinha.ping(url, function(){loadUrl(url)}); |
| 3353 | | |
| 3354 | | file = pluginName.replace(/([a-z])([A-Z])([a-z])/g, function (str, l1, l2, l3) { return l1 + "-" + l2.toLowerCase() + l3; }).toLowerCase() + ".js"; |
| 3355 | | url = dir + "/" + file; |
| 3356 | | Xinha.ping(url, function(){loadUrl(url)}); |
| 3357 | | |
| 3358 | | /* synchronous: |
| 3359 | | if (!Xinha.ping(dir + "/" + file)) |
| 3360 | | { |
| 3361 | | file = pluginName.replace(/([a-z])([A-Z])([a-z])/g, function (str, l1, l2, l3) { return l1 + "-" + l2.toLowerCase() + l3; }).toLowerCase() + ".js"; |
| 3362 | | if (Xinha.ping(dir + "/" + file)) |
| 3363 | | { |
| 3364 | | url = dir + "/" + file; |
| 3365 | | Xinha.externalPlugins[pluginName] = [dir,'/'+ file]; |
| 3366 | | Xinha.debugMsg('You use an obsolete naming scheme for the Xinha plugin '+pluginName+'. Please rename '+file+' to '+pluginName+'.js' ); |
| 3367 | | } |
| 3368 | | else |
| 3369 | | { |
| 3370 | | Xinha.debugMsg('Xinha was not able to find the plugin file '+url+'. Please make sure the plugin exist.') |
| 3371 | | Xinha._pluginLoadStatus[pluginName] = 'failed'; |
| 3372 | | return true |
| 3373 | | } |
| 3374 | | } |
| 3375 | | */ |
| | 3352 | loadUrl(url); |
| | 3353 | Xinha.ping(url, null, function(){ |
| | 3354 | Xinha.removeFromParent(document.getElementById(url)); |
| | 3355 | file = pluginName.replace(/([a-z])([A-Z])([a-z])/g, function (str, l1, l2, l3) { return l1 + "-" + l2.toLowerCase() + l3; }).toLowerCase() + ".js"; |
| | 3356 | url = dir + "/" + file; |
| | 3357 | loadUrl(url); |
| | 3358 | Xinha.ping(url, |
| | 3359 | function(){Xinha.debugMsg('You are using an obsolete naming scheme for the Xinha plugin '+pluginName+'. Please rename '+file+' to '+pluginName+'.js' );}, |
| | 3360 | function(){ |
| | 3361 | Xinha._pluginLoadStatus[pluginName] = 'failed'; |
| | 3362 | Xinha.debugMsg('Xinha was not able to find the plugin file '+url+'. Please make sure the plugin exist.') |
| | 3363 | Xinha.removeFromParent(document.getElementById(url)); |
| | 3364 | }); |
| | 3365 | }); |