Hi Expert,
I am using the callServer() framework written by some genius iwov expert. Well, I am following it properly(as per the definition) but somehow its failing to process all the replicants. Its processing only first replicants.
I am calling the callServerDone() method inside my perl code( the script used inside callServerQueue() method).
I tried to have an alert call in all the methods of the callServer() farmework and every time alert is getting triggered but callServerQueue() is processing only first record.
Please below see the java script I am calling from my DCT. CallServer.js is the file which has all the callServer() framework method.
<script language="javascript" src="https://www.tdameritrade.com/retail-en_us/resources/javascript/custom_libs/libs/jquery-1.10.1.min.js"/>
<script language="javascript" src="https://www.tdameritrade.com/retail-en_us/resources/javascript/release/jquery/jquery-ui/js/jquery-ui-1.10.4.custom.min.js"/>
<script language="javascript" src="/iw/js/personalization/CallServer.js"></script>
<script language="javascript" location="template-type" src="/guiupdate/guiupdate.js"/>
<script language="javascript" src="/iw/js/personalization/personalization.js"/>
<script language="javascript" src="/iw/js/personalization/repdelete.js"/>
<script language="javascript" src="/iw/js/personalization/logictemplate.js"/>
<script language="javascript" src="/iw-cc/base/widget/calendar/calendar_init.js" type="text/javascript"/>
The perl script where I am calling the callServerDone() method.
#!C:\Interwoven\TeamSite/iw-perl/bin/iwperl -w
use strict;
use warnings;
use File::Copy;
use TeamSite::Config;
use CGI;
use TeamSite::CGI_lite;
my $timestamp = localtime(time);
my $logFile = "C:/Interwoven/TeamSite/local/logs/FileCopy.log";
open(LOG, ">>$logFile") or die "Unable to open logfile:$!\n";
print LOG "Entering FileCopy - TEMP.ipl \n";
#This file requires source and destination parameters.
my $in = new CGI;
my $source_file =$in->param('source');
print LOG "source file is : $source_file \n";
my $target_file = $in->param('target');
print LOG "Target file is : $target_file \n";
copy($source_file,$target_file) or die "File cannot be copied: $!";
close LOG;
print <<"END";
<!DOCTYPE html>
<html>
<head>
<title>TD Ameritrade - Teamsite</title>
<body>
//<script language="javascript" src="http://devctwvcmsapp01.pte-am.ameritrade.com/iw/js/personalization/personalization.js"></script>
<script language="javascript" src="http://devctwvcmsapp01.pte-am.ameritrade.com/iw/js/personalization/CallServer.js"></script>
<script>
callServerDone();
//alert("done");
</script>
END
exit 0;
The below method I am calling from my js file.
callServerQueue("http://devctwvcmsapp01.pte-am.ameritrade.com/iw-bin/FileCopy.ipl", param,true);
Regards,
Ajay Tyagi