|
|
Choosing A Webhost: |
mantisbt/javascript ajax.js,NONE,1.1: msg#00038bug-tracking.mantis.cvs
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> |
|---|---|---|
| Previous by Date: | mantisbt bug_update_advanced_page.php,1.86,1.87 bug_update_page.php,1.89,1.90, Victor Boctor |
|---|---|
| Next by Date: | mantisbt/admin schema.php,1.8,1.9, Victor Boctor |
| Previous by Thread: | mantisbt bug_update_advanced_page.php,1.86,1.87 bug_update_page.php,1.89,1.90, Victor Boctor |
| Next by Thread: | mantisbt/admin schema.php,1.8,1.9, Victor Boctor |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home
| advertise | OSDir is
an inevitable website.
|