Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

mantisbt/javascript ajax.js,NONE,1.1: msg#00038

bug-tracking.mantis.cvs

Subject: mantisbt/javascript ajax.js,NONE,1.1

Update of /cvsroot/mantisbt/mantisbt/javascript
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27283/javascript

Added Files:
ajax.js
Log Message:
Fixed #4019: Ability to update reporter increases update page size dramatically.
Implemented infrastructure to simplify the use of Ajax in Mantis.

--- NEW FILE: ajax.js ---
/*
* Mantis - a php based bugtracking system
* Copyright (C) 2000 - 2002 Kenzaburo Ito -
kenito-J7RQz27tXwtAfugRpC6u6w@xxxxxxxxxxxxxxxx
* Copyright (C) 2002 - 2006 Mantis Team -
mantisbt-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
* This program is distributed under the terms and conditions of the GPL
* See the README and LICENSE files for details
*
* --------------------------------------------------------
* $Id: ajax.js,v 1.1 2006/05/16 23:59:29 vboctor Exp $
* --------------------------------------------------------
*/

var processURI = './xmlhttprequest.php';
var liveReq = false;

// on !IE we only have to initialize it once
if (window.XMLHttpRequest) {
liveReq = new XMLHttpRequest();
}

/**
* Build the XMLHttpRequest and send it
*/
function AjaxLoad( targetElementId, queryString, elementIdToHide ) {
if (liveReq && liveReq.readyState < 4) {
liveReq.abort();
}

if (window.XMLHttpRequest) {
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
liveReq = new ActiveXObject("Microsoft.XMLHTTP");
}

name = this.id;
liveReq.onreadystatechange = function() { liveReqProcessReqChange(
targetElementId, elementIdToHide ); };
liveReq.open("GET", processURI + "?" + queryString);

// show "Loading..." while waiting
document.getElementById( targetElementId ).innerHTML = "Loading...";

liveReq.send(null);

return false;
}

/**
* Processes the results of the XMLHttpRequest
*/
function liveReqProcessReqChange( targetElementId, elementIdToHide ) {
if (liveReq.readyState == 4) {
document.getElementById(targetElementId).innerHTML =
liveReq.responseText;
document.getElementById(elementIdToHide).innerHTML = '';
}
}


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo