JAVASCRIPT   11

ajax.js

Guest on 20th July 2021 03:40:56 PM

  1. function include(script_filename) {
  2.     document.write('<' + 'script');
  3.     document.write(' language="javascript"');
  4.     document.write(' type="text/javascript"');
  5.     document.write(' src="' + script_filename + '">');
  6.     document.write('</' + 'script' + '>');
  7. }
  8.  
  9. function include_dom(script_filename) {
  10.     var html_doc = document.getElementsByTagName('head').item(0);
  11.     var js = document.createElement('script');
  12.     js.setAttribute('language', 'javascript');
  13.     js.setAttribute('type', 'text/javascript');
  14.     js.setAttribute('src', script_filename);
  15.     html_doc.appendChild(js);
  16.     return false;
  17. }
  18.  
  19.  
  20. //include(_ajaxConfig._jsscriptFolder + '/engine.1.38.js');
  21. include(_ajaxConfig._jsscriptFolder + '/engine.js');
  22. include(_ajaxConfig._jsscriptFolder + '/util.js');
  23. include(_ajaxConfig._jsscriptFolder + '/wddx.js');
  24.  
  25. if (_ajaxConfig && _ajaxConfig.debug) {
  26.         include(_ajaxConfig._jsscriptFolder + '/log4javascript.js');
  27.         include(_ajaxConfig._jsscriptFolder + '/log4javascriptSetup.js');
  28. }

Raw Paste


Login or Register to edit or fork this paste. It's free.