Application Timeout with AJAX and javscript
Hi,
I have a dynamic PL/SQL region that builds a form and the submit button executes a javascript function which saves the data by an AJAX ODP call. It works great if the user doesn't go over so much time and then it causes an ugly error.
The javascript executes the ODP call which tries to go to the database but somewhere along the road it is told "This Session is Expired" and seems that it returns the Session timeout page back into the get item.
Is there a way to intercept the return value, in other words know what to test for upon return so I don't continue in my javascript processing by gracefully exit out so it will just go to the Session timeout page?
var lreturn = get.get();
if(lreturn == ??? )
My call
if(lcontinue){
$x_Hide(l_Item);
alert('Your request will be processed momentarily.');
lerrmsg = 'Starting odpAuditUse().';
var app=$x('pFlowId').value;
var pg=$x('pFlowStepId').value;
var get=new htmldb_Get(null,app,'APPLICATION_PROCESS=odpAuditUse',pg);
get.add('G_ITEM1',lAdtUseID);
get.add('G_ITEM2',lCLIENT);
get.add('G_ITEM3',lCLAIMANT);
get.add('G_ITEM4',lOFFICE);
get.add('G_ITEM5',lEXAMINER);
get.add('G_ITEM6',lSUPERVISOR);
get.add('G_ITEM7',lAUDITOR);
get.add('G_ITEM8',lAUDIT_DATE);
get.add('G_ITEM9',lAUDIT_TEMPLATE_ID);
get.add('G_ITEM10',lFILE_NBR);
get.add('G_ITEM11',lStatus);
get.add('G_ITEM12',lNurse);
get.add('G_ITEM13',lNurseSuper);
get.add('G_ITEM14',lComment);
var lreturn = get.get();
get=null;
lerrmsg = 'Done with odpAuditUse().';
if(!isSuccessful(lreturn,'Audit Header')) return;
lAdtUseID =$x('P3_AUDIT_USE_ID').value;
}