- ajaxiontest1.0_net1.1_src.zip
- AjaxionTest
- ajaxiontest1.0_net2.0_src.zip
- ajaxiontest1.0_java_src.zip
- ajaxionTest.jpr
- ajaxionTest.jpr.bak
- AjaxionTest.jws
- classes
- ajaxionTest.cdi
- pw
- ajaxion
- AjaxionEventConsumer.class
- log
- FileLog.class
- servlet.cdi
- servlet
- ajaxionTest.class
- public_html
- pw.ajaxion
- classes
- pw.ajaxion.cdi
- pw
- ajaxion
- AjaxionEventConsumer.class
- AjaxionEventHandler.class
- pw.ajaxion.jpr
- src
- pw
- ajaxion
- pw.log
- classes
- audit.log
- pw.log.cdi
- pw
- log
- FileLog.class
- test
- pw.log.jpr
- src
- src
- servlet
|
// Page initialisation
var ajaxion = new Ajaxion("../ajaxionTest");
var getTextEvent = "getText";
function onLoad()
{
//var handler = "ajaxion.get('getText', getTextCallback)";
//window.document.getElementById("btn").setAttribute("onclick", handler);
}
// Page specific events handlers and parameters
function parseEventParam(eventId)
{
beginEvent(eventId);
var eventParams;
switch (eventId)
{
case getTextEvent :
window.document.getElementById("txDiv").innerHTML = "Retrieve Area";
eventParams = getText(eventId);
break;
default:
eventParams = null;
alert("Unexpected ajaxion event id: " + eventId);
break;
}
return eventParams;
}
// Override ajaxion.endEvent and ajaxion.endEvent for this page
ajaxion.beginEvent = beginEvent;
ajaxion.endEvent = endEvent;
function beginEvent(eventId)
{
ajaxion.showStatus("status", "Processing...", "coral");
ajaxion.showStatusImg("statusImg", "images/processing.gif");
ajaxion.setEventMonior(eventId, null);
}
function endEvent()
{
ajaxion.setEventMonior(null, null);
ajaxion.showStatus("status", "Ready", "silver");
ajaxion.showStatusImg("statusImg", "images/ready.jpg");
}
// getTextEvent
function getText(param)
{
return param;
}
function getTextCallback()
{
try
{
if (ajaxion.isEventConsumed())
{
window.document.getElementById("txDiv").innerHTML = ajaxion.getResponseString();
ajaxion.endEvent();
}
}
catch (ex)
{
ajaxion.endEvent();
alert("getTextCallback exception: " + ex.description);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.