File: xajax_legacy.js

package info (click to toggle)
php-xajax 0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,176 kB
  • ctags: 2,662
  • sloc: php: 11,879; sh: 34; makefile: 13
file content (14 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

try{if('undefined'==typeof xajax)
throw{name:'SequenceError',message:'Error: xajax core was not detected, legacy module disabled.'}
if('undefined'==typeof xajax.legacy)
xajax.legacy={}
xajax.legacy.call=xajax.call;xajax.call=function(sFunction,objParameters){var oOpt={}
oOpt.parameters=objParameters;if(undefined!=xajax.loadingFunction){if(undefined==oOpt.callback)
oOpt.callback={}
oOpt.callback.onResponseDelay=xajax.loadingFunction;}
if(undefined!=xajax.doneLoadingFunction){if(undefined==oOpt.callback)
oOpt.callback={}
oOpt.callback.onComplete=xajax.doneLoadingFunction;}
return xajax.legacy.call(sFunction,oOpt);}
xajax.legacy.isLoaded=true;}catch(e){alert(e.name+': '+e.message);}