Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
cancelling callServer Request after Timeout
System
I am not able to cancel my callServer request after timeout.
But my timeout function is called properly.
//here I am calling the server
// Make an HTTP GET to the server.
timeout1 = setTimeout("callServerFailed()", 60000);//Timeout after 60seconds
top.hiddenFrameRunning = true;
IWDatacapture.callServer("/iw-bin/setSelectionOptions.cgi", parameters, true);
}
function callServerFailed() {
//This alert shows up
alert("Options Could not be set for Title Field. Call to Server Timed Out");
// Abort the request by sending a blank page to the hidden frame.
var param = new new Object();
IWDatacapture.callServer("blank.html", param, true);
}
##############
here is my CGI
###############
use strict;
use CGI ;
#Sleep for longtime
sleep 120 ;
....
....
Find more posts tagged with
Comments
Migrateduser
My guess is the following line probably caused a JS error.
var param = new new Object();
--Daniel