Update of /cvsroot/sitesampler/sitesampler/SiteSampler/Agent/Template/Basic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6155/SiteSampler/Agent/Template/Basic
Modified Files:
Basic
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: Basic
===================================================================
RCS file: /cvsroot/sitesampler/sitesampler/SiteSampler/Agent/Template/Basic/Basic,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Basic 22 Jun 2005 01:38:28 -0000 1.1.1.1
--- Basic 25 Jul 2005 00:43:24 -0000 1.2
***************
*** 102,105 ****
--- 102,106 ----
Zev = <TMPL_VAR NAME=js_event>;
Zsw = <TMPL_VAR NAME=solicit_window>;
+ ZsurveyWin = null;
if(Zrv > <TMPL_VAR NAME=sampling_rate>){
***************
*** 107,112 ****
}
! if(!Zsw)Zss='window.location.href=ZSU;';
! else if(Zsw)Zss='surveyWin=window.open(ZSU,"surveyWin",Zwp);';
if(Zev==0){
--- 108,115 ----
}
! if(!Zsw)
! Zss='ss_t.send_stats("1",false); window.location.href=ZSU;';
! else if(Zsw)
! Zss='ZsurveyWin = window.open(ZSU,"surveyWin",Zwp); if(ZsurveyWin){ ss_t.send_stats("1",false);}';
if(Zev==0){
***************
*** 160,164 ****
function Zav(){
if(ZUQ) ZSU += makeQstr();
- ss_t.send_stats("1",false);
eval(Zss);
}
--- 163,166 ----
|