Login   Register  
PHP Classes
elePHPant
Icontem

File: rspa.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of sunish  >  RSPA  >  rspa.js  >  Download  
File: rspa.js
Role: Auxiliary data
Content type: text/plain
Description: Javascript file
Class: RSPA
Process browser events on the server using AJAX
Author: By
Last change: Change for PHP 4
Date: 8 years ago
Size: 1,504 bytes
 

Contents

Class file image Download
/**
  *
  *
  *  Author : Sunish Kumar M.V
  *
  *  This is licenced under LGPL licence.
  * 
  **/

// Pfad definitionen
	if (!PFAD){var PFAD = "";} // ServerPfad zu RSPA als BASE64
	if (!PFAD_INCLUDE_LINK){var PFAD_INCLUDE_LINK = "";}	// Pfad zu RSPA als Link
	if (!INCLUDE_FILE){var INCLUDE_FILE = "";}	// Fr PHP-Class --> require_once($_REQUEST['__include_file']);
	
function require(libraryName) {
   document.write('<script type="text/javascript" src="'+libraryName+'"></script>\n');	
}

function getPath() {
   var scpts = document.getElementsByTagName("script");
	for(i=0;i<scpts.length;i++) {
		if(scpts[i].src.match(/rspa\.js(\?.*)?$/)) {
		   src = scpts[i].src ;
		   var path = src.replace(/rspa\.js(\?.*)?$/,'');
		   return path;
	    }
	}
}

function load() {
   var libPath = getPath() +"/lib/";
	   
   require(libPath+"prototype.js");
   require(libPath+"effects.js");
   require(libPath+"controls.js");
   require(libPath+"rspacontroller.js");
   initWidgets();
}

function initWidgets(){
   document.write("<div id=\"__RSPA__loadStatus\" style=\"display:none;position:absolute;border:1px solid #e00;background-color:#fee;padding:2px;margin-top:8px;width:300px;font:normal 12px Arial;color:#900\"></div>");
   document.write("<div id=\"__RSPA__DebugWindow\" style=\"display:none;border:1px solid #000;background-color:#000000;padding:2px;margin-top:8px;height:150px; width:600px;font:normal 12px Arial;color:#ffffff\"></div>");
}

load();