Update of /cvsroot/sitesampler/sitesampler/SiteSampler/Agent/Template/OnExit
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6155/SiteSampler/Agent/Template/OnExit
Modified Files:
OnExit
Log Message:
discovered a pretty serious bug where we were logging solicitations when there were no solicitations. the solution required a change to the javascripts so that sending stats would happen at the right time.
Index: OnExit
===================================================================
RCS file: /cvsroot/sitesampler/sitesampler/SiteSampler/Agent/Template/OnExit/OnExit,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** OnExit 22 Jun 2005 01:38:29 -0000 1.1.1.1
--- OnExit 25 Jul 2005 00:43:24 -0000 1.2
***************
*** 145,157 ****
function solicitUser(){
- ss_t.send_stats("1");
if(Zuq) Zsu += makeQstr();
var Zurl = Zsu;
if(Ztc) Zurl = 'http://$ENV{'HTTP_HOST'}$COOKIE_PATH/<TMPL_VAR NAME=agentid>/setCookie?' + Zurl;
if(!Zsw){
top.location.href=(Zurl);
}
else{
Zwin=window.open(Zurl,"Zpn",Zwp);
}
--- 145,159 ----
function solicitUser(){
if(Zuq) Zsu += makeQstr();
var Zurl = Zsu;
if(Ztc) Zurl = 'http://$ENV{'HTTP_HOST'}$COOKIE_PATH/<TMPL_VAR NAME=agentid>/setCookie?' + Zurl;
if(!Zsw){
+ ss_t.send_stats("1",false);
top.location.href=(Zurl);
}
else{
Zwin=window.open(Zurl,"Zpn",Zwp);
+ if(Zwin)
+ ss_t.send_stats("1",false);
}
|