Hi Clifton,
Is it possible to intercept this message? I know exactly why pgExecuteRemote has failed and its failure is significant in my system. I would like to be able to handle this error myself rather than let the message appear.
John
try {
tbfunction_pgExecuteRemote( [your params] );
} catch(e) {
alert(e); //this line is not needed, but would pass the error handler
}
function decryptMyText(txt, myKey)
{
try {
var decoded = GibberishAES.dec(txt, myKey);
return decoded;
} catch (err) {
alert("Invalid key"); // or return something else
}
};
Users browsing this forum: No registered users and 2 guests