- 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
|
var ajaxion = new Ajaxion();
var imageUrlEvent = "imageUrl";
var dgdp = new DragDrop();
function parseEventParam(eventId)
{
ajaxion.beginEvent(eventId);
var eventParam;
switch (eventId)
{
case imageUrlEvent :
eventParam = window.document.getElementById( dgdp.GetSourceId() ).title;
break;
default :
eventParam = null;
alert("Unexpected ajaxion event id: " + eventId);
break;
}
return eventParam;
}
// 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");
}
// Event callback handlers //////////////////////////////////////////////////////////////////////
function GetImageCallback()
{
try
{
if (ajaxion.isEventConsumed())
{
var targetId = dgdp.GetTargetId();
window.document.getElementById(targetId).src = ajaxion.getResponseString();
window.document.getElementById(targetId).title = ajaxion.getParam();
dgdp.Initialize();
ajaxion.endEvent();
}
}
catch (ex)
{
dgdp.Initialize();
ajaxion.endEvent();
alert("GetImageCallback 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.