PHP Classes
elePHPant
Icontem

File: whois/js/common.js

Recommend this page to a friend!
  Classes of Keshav Mishra  >  Domain Lookup  >  whois/js/common.js  >  Download  
File: whois/js/common.js
Role: Application script
Content type: text/plain
Description: Java Script file
Class: Domain Lookup
Check whether a domain is registered or available
Author: By
Last change:
Date: 7 years ago
Size: 1,054 bytes
 

Contents

Class file image Download
// JavaScript Document
/*
    * @added By : Keshav Mishra
    * @date : 25 May 2009
    * @purpose : funciton show the loader image while loading ajax box
    * @params :
    *
*/

function pageLoading(divId)
{
    //$(divId).style.display='block';
    //$(divId).style.visibility = 'visible';
    $(divId).innerHTML = '<div id="loading"><img alt="Loading..." src="images/ajax-loader-big.gif"/></div>';
}

/*
    * @added By : Keshav Mishra
    * @date : 25 May 2009
    * @purpose : funciton stio the loader image while loading ajax box
    * @params :
    *
*/

function pageComplete(divId)
{
    $(divId).innerHTML = '';
    //$(divId).style.display='none';
    //$(divId).style.visibility = 'hidden';
}


function getResult(formId, divId, URL){
    new Ajax.Updater(divId, URL, {asynchronous:true, evalScripts:true, parameters:Form.serialize(formId), onLoading:function(request) {pageLoading(divId);},onComplete:function(request, json) {pageComplete(divId);}, requestHeaders:['X-Update', divId]});
}