74. Araxis Merge File Comparison Report

Produced by Araxis Merge on Fri Nov 21 17:21:52 2008 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

74.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.1.20396.b\Formats\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts switch.js Thu May 31 18:40:22 2007 UTC
2 C:\Documents and Settings\allums\Desktop\2008.2.20597.p2\Formats\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts switch.js Fri Jul 4 06:51:22 2008 UTC

74.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 5 522
Changed 3 20
Inserted 0 0
Removed 1 1

74.3 Comparison options

Whitespace Differences in whitespace are significant
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

74.4 Active regular expressions

Expression Description
\$(Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments

74.5 Comparison detail

1   // Copyrig ht (c) 200 0-2003 Qua dralay Cor poration.   All right s reserved .   1   // Copyrig ht (c) 200 0-2003 Qua dralay Cor poration.   All right s reserved .
2   //   2   //
3     3  
4   function   WWHSwitch_ Object()   4   function   WWHSwitch_ Object()
5   {   5   {
6     this.mPa rameters      = "";   6     this.mPa rameters      = "";
7     this.mIm plementati on = "java script";   7     this.mIm plementati on = "java script";
8     this.mSe ttings        = new W WHCommonSe ttings_Obj ect();   8     this.mSe ttings        = new W WHCommonSe ttings_Obj ect();
9     this.mMe ssages        = new W WHCommonMe ssages_Obj ect();   9     this.mMe ssages        = new W WHCommonMe ssages_Obj ect();
10     10  
11     this.fEx ec                = W WHSwitch_E xec;   11     this.fEx ec                = W WHSwitch_E xec;
12     this.fPa rseURLPara meters = W WHSwitch_P arseURLPar ameters;   12     this.fPa rseURLPara meters = W WHSwitch_P arseURLPar ameters;
13     this.fPr ocessURL          = W WHSwitch_P rocessURL;   13     this.fPr ocessURL          = W WHSwitch_P rocessURL;
14     this.fSw itch              = W WHSwitch_S witch;   14     this.fSw itch              = W WHSwitch_S witch;
15     15  
16     // Load  up message s   16     // Load  up message s
17     //   17     //
18     this.mMe ssages.fSe tByLocale( WWHFrame.W WHBrowser. mLocale);   18     this.mMe ssages.fSe tByLocale( WWHFrame.W WHBrowser. mLocale);
19   }   19   }
20     20  
21   function   WWHSwitch_ Exec(bPara mNormalize URL,   21   function   WWHSwitch_ Exec(bPara mNormalize URL,
22                              Param URL)   22                              Param URL)
23   {   23   {
24     var  Tar getURL   =  ParamURL;   24     var  Tar getURL   =  ParamURL;
25     var  Fra meSetURL =  "";   25     var  Fra meSetURL =  "";
26     26  
27     27  
28     // Deter mine cooki e path   28     // Deter mine cooki e path
29     //   29     //
30     WWHFrame .WWHBrowse r.fSetCook iePath(WWH StringUtil ities_GetB aseURL(Par amURL));   30     WWHFrame .WWHBrowse r.fSetCook iePath(WWH StringUtil ities_GetB aseURL(Par amURL));
31     31  
32     // Norma lize URL i f necessar y   32     // Norma lize URL i f necessar y
33     //   33     //
34     if (bPar amNormaliz eURL)   34     if (bPar amNormaliz eURL)
35     {   35     {
36       Target URL = WWHF rame.WWHBr owser.fNor malizeURL( ParamURL);   36       Target URL = WWHF rame.WWHBr owser.fNor malizeURL( ParamURL);
37     }   37     }
38     38  
39     // Proce ss paramet ers   39     // Proce ss paramet ers
40     //   40     //
41     this.fPr ocessURL(T argetURL);   41     this.fPr ocessURL(T argetURL);
42     42  
43     // Pick  frameset t o use   43     // Pick  frameset t o use
44     //   44     //
45     if (this .mImplemen tation ==  "single")   45     if (this .mImplemen tation ==  "single")
46     {   46     {
47       FrameS etURL = ". ./../commo n/html/wwh elp.htm";   47       FrameS etURL = ". ./../commo n/html/wwh elp.htm";
48     }   48     }
49     else   49     else
50     {   50     {
51       FrameS etURL = ". ./../js/ht ml/wwhelp. htm";   51       FrameS etURL = ". ./../js/ht ml/wwhelp. htm";
52     }   52     }
53     53  
54     // Switc h to frame set   54     // Switc h to frame set
55     //   55     //
56     this.fSw itch(Frame SetURL);   56     this.fSw itch(Frame SetURL);
57   }   57   }
58     58  
59   function   WWHSwitch_ ParseURLPa rameters(P aramURL)   59   function   WWHSwitch_ ParseURLPa rameters(P aramURL)
60   {   60   {
61     var  Res ult = new  Array(null , null, nu ll, "");   61     var  Res ult = new  Array(null , null, nu ll, "");
62     var  Par ts;   62     var  Par ts;
63     var  Max Index;   63     var  Max Index;
64     var  Ind ex;   64     var  Ind ex;
65     var  Sin gleMarker      = "sin gle=";   65     var  Sin gleMarker      = "sin gle=";
66     var  For ceJSMarker     = "for cejs=";   66     var  For ceJSMarker     = "for cejs=";
67     var  Acc essibleMar ker = "acc essible=";   67     var  Acc essibleMar ker = "acc essible=";
68     var  Val ue;   68     var  Val ue;
69     69  
70     70  
71     // Using  a closure  for this  function.  It is copi ed in help .js as wel l   71     // Using  a closure  for this  function.  It is copi ed in help .js as wel l
72     //   72     //
73     function  GetDelimi tedArgumen ts(ParamUR L)   73     function  GetDelimi tedArgumen ts(ParamUR L)
74     {   74     {
75       var  D elimiters  = ["?", "# "];        
76       var  P arts = [];   75       var  P arts = [];
77       var   i ;   76       var   Parameters ;
78     77  
79     78       // Pro cess URL p arameters
80       for (i =0; i < De limiters.l ength; i++ )   79       //
        80       if (lo cation.hre f.indexOf( "?") != -1 )
81       {   81       {
82           if ( P a
r amURL .indexOf( Delimiters [i] ) != -1)
  82         Part s = locati on.href.sp lit("?");
83           {   83       }
84             Par
t
s = Par amURL .s plit(De li mit e rs[ i ] );
  84        else  if ( loc a tion.h r ef .indexOf( "#" ) != -1)
85         
 
  b r e a k ;
  85       
{
86         }   86         Part s = locati on.href.sp lit("#");
        87         
Par ame t er s = Par ts .s
li c e (1).jo i n("#" );
        88         Part s.length =  2;
        89          Parts[1]   =   Pa r
a meters ;
87       }   90       }
88     91  
89       return  Parts;   92       return  Parts;
90     }   93     }
91     94  
92     // Get p arameters   95     // Get p arameters
93     //   96     //
94     Parts =  GetDelimit edArgument s(ParamURL );   97     Parts =  GetDelimit edArgument s(ParamURL );
95     if (Part s.length >  0)   98     if (Part s.length >  0)
96     {   99     {
97       Parts[ 0] = Parts [1];   100       Parts[ 0] = Parts [1];
98       Parts. length = 1 ;   101       Parts. length = 1 ;
99       if (Pa rts[0].ind exOf("&")  != -1)   102       if (Pa rts[0].ind exOf("&")  != -1)
100       {   103       {
101         Part s = Parts[ 0].split(" &");   104         Part s = Parts[ 0].split(" &");
102       }   105       }
103     106  
104       // Pro cess param eters, pre serve non- switch rel ated optio ns   107       // Pro cess param eters, pre serve non- switch rel ated optio ns
105       //   108       //
106       for (M axIndex =  Parts.leng th, Index  = 0 ; Inde x < MaxInd ex ; Index ++)   109       for (M axIndex =  Parts.leng th, Index  = 0 ; Inde x < MaxInd ex ; Index ++)
107       {   110       {
108         if ( Parts[Inde x].indexOf (SingleMar ker) == 0)   111         if ( Parts[Inde x].indexOf (SingleMar ker) == 0)
109         {   112         {
110           Va lue = Part s[Index].s ubstring(S ingleMarke r.length,  Parts[Inde x].length) ;   113           Va lue = Part s[Index].s ubstring(S ingleMarke r.length,  Parts[Inde x].length) ;
111     114  
112           if  (Value ==  "true")   115           if  (Value ==  "true")
113           {   116           {
114              Result[0]  = true;   117              Result[0]  = true;
115           }   118           }
116         }   119         }
117         else  if (Parts [Index].in dexOf(Forc eJSMarker)  == 0)   120         else  if (Parts [Index].in dexOf(Forc eJSMarker)  == 0)
118         {   121         {
119           Va lue = Part s[Index].s ubstring(F orceJSMark er.length,  Parts[Ind ex].length );   122           Va lue = Part s[Index].s ubstring(F orceJSMark er.length,  Parts[Ind ex].length );
120     123  
121           if  (Value ==  "true")   124           if  (Value ==  "true")
122           {   125           {
123              Result[1]  = true;   126              Result[1]  = true;
124           }   127           }
125         }   128         }
126         else  if (Parts [Index].in dexOf(Acce ssibleMark er) == 0)   129         else  if (Parts [Index].in dexOf(Acce ssibleMark er) == 0)
127         {   130         {
128           Va lue = Part s[Index].s ubstring(A ccessibleM arker.leng th, Parts[ Index].len gth);   131           Va lue = Part s[Index].s ubstring(A ccessibleM arker.leng th, Parts[ Index].len gth);
129     132  
130           if  ((Value = = "true")  ||   133           if  ((Value = = "true")  ||
131                (Value = = "false")  ||   134                (Value = = "false")  ||
132                (Value = = "ask"))   135                (Value = = "ask"))
133           {   136           {
134              Result[2]  = Value;   137              Result[2]  = Value;
135           }   138           }
136         }   139         }
137         else   140         else
138         {   141         {
139           if  (Result[3 ].length >  0)   142           if  (Result[3 ].length >  0)
140           {   143           {
141              Result[3]  += "&";   144              Result[3]  += "&";
142           }   145           }
143           Re sult[3] +=  Parts[Ind ex];   146           Re sult[3] +=  Parts[Ind ex];
144         }   147         }
145       }   148       }
146     }   149     }
147     150  
148     return R esult;   151     return R esult;
149   }   152   }
150     153  
151   function   WWHSwitch_ ProcessURL (ParamURL)   154   function   WWHSwitch_ ProcessURL (ParamURL)
152   {   155   {
153     var  Var URLParamet ers;   156     var  Var URLParamet ers;
154     var  Var URLParam_S ingle;   157     var  Var URLParam_S ingle;
155     var  Var URLParam_F orceJS;   158     var  Var URLParam_F orceJS;
156     var  Var URLParam_A ccessible;   159     var  Var URLParam_A ccessible;
157     var  Var Accessible Cookie = " WWH" + thi s.mSetting s.mCookies ID + "_Acs ";   160     var  Var Accessible Cookie = " WWH" + thi s.mSetting s.mCookies ID + "_Acs ";
158     var  Var Accessible ;   161     var  Var Accessible ;
159     var  Var Implementa tion;   162     var  Var Implementa tion;
160     163  
161     164  
162     // Parse  URL param eters   165     // Parse  URL param eters
163     //   166     //
164     VarURLPa rameters =  this.fPar seURLParam eters(Para mURL);   167     VarURLPa rameters =  this.fPar seURLParam eters(Para mURL);
165     VarURLPa ram_Single      = Var URLParamet ers[0];   168     VarURLPa ram_Single      = Var URLParamet ers[0];
166     VarURLPa ram_ForceJ S    = Var URLParamet ers[1];   169     VarURLPa ram_ForceJ S    = Var URLParamet ers[1];
167     VarURLPa ram_Access ible = Var URLParamet ers[2];   170     VarURLPa ram_Access ible = Var URLParamet ers[2];
168     this.mPa rameters        = Var URLParamet ers[3];   171     this.mPa rameters        = Var URLParamet ers[3];
169     172  
170     // Check  for acces sibility s upport   173     // Check  for acces sibility s upport
171     //   174     //
172     VarAcces sible = "f alse";   175     VarAcces sible = "f alse";
173     if ((thi s.mSetting s.mAccessi ble == "tr ue") ||   176     if ((thi s.mSetting s.mAccessi ble == "tr ue") ||
174         (Var URLParam_A ccessible  == "true") )   177         (Var URLParam_A ccessible  == "true") )
175     {   178     {
176       VarAcc essible =  "true";   179       VarAcc essible =  "true";
177     }   180     }
178     else if  ((this.mSe ttings.mAc cessible = = "ask") | |   181     else if  ((this.mSe ttings.mAc cessible = = "ask") | |
179               (VarURLPa ram_Access ible == "a sk"))   182               (VarURLPa ram_Access ible == "a sk"))
180     {   183     {
181       // Att empt to re trive sett ing from c ookies, if  allowed   184       // Att empt to re trive sett ing from c ookies, if  allowed
182       //   185       //
183       VarAcc essible =  "ask";   186       VarAcc essible =  "ask";
184       if (th is.mSettin gs.mbCooki es)   187       if (th is.mSettin gs.mbCooki es)
185       {   188       {
186         VarA ccessible  = WWHFrame .WWHBrowse r.fGetCook ie(VarAcce ssibleCook ie);   189         VarA ccessible  = WWHFrame .WWHBrowse r.fGetCook ie(VarAcce ssibleCook ie);
187         if ( VarAccessi ble == nul l)   190         if ( VarAccessi ble == nul l)
188         {   191         {
189           Va rAccessibl e = "ask";   192           Va rAccessibl e = "ask";
190         }   193         }
191       }   194       }
192     195  
193       // Ask  if cookie  not set o r disallow ed   196       // Ask  if cookie  not set o r disallow ed
194       //   197       //
195       if (Va rAccessibl e == "ask" )   198       if (Va rAccessibl e == "ask" )
196       {   199       {
197         if ( confirm(th is.mMessag es.mUseAcc essibleHTM L))   200         if ( confirm(th is.mMessag es.mUseAcc essibleHTM L))
198         {   201         {
199           Va rAccessibl e = "true" ;   202           Va rAccessibl e = "true" ;
200         }   203         }
201         else   204         else
202         {   205         {
203           Va rAccessibl e = "false ";   206           Va rAccessibl e = "false ";
204         }   207         }
205       }   208       }
206     }   209     }
207     210  
208     // Deter mine imple mentation   211     // Deter mine imple mentation
209     //   212     //
210     VarImple mentation  = "javascr ipt";   213     VarImple mentation  = "javascr ipt";
211     214  
212     // Reset  implement ation base d on URL p arameters   215     // Reset  implement ation base d on URL p arameters
213     //   216     //
214     if ((Var URLParam_S ingle != n ull) &&   217     if ((Var URLParam_S ingle != n ull) &&
215         (Var URLParam_S ingle == t rue))   218         (Var URLParam_S ingle == t rue))
216     {   219     {
217       VarImp lementatio n = "singl e";   220       VarImp lementatio n = "singl e";
218     }   221     }
219     else if  ((VarURLPa ram_ForceJ S != null)  &&   222     else if  ((VarURLPa ram_ForceJ S != null)  &&
220               (VarURLPa ram_ForceJ S == true) )   223               (VarURLPa ram_ForceJ S == true) )
221     {   224     {
222       VarImp lementatio n = "javas cript";   225       VarImp lementatio n = "javas cript";
223     }   226     }
224     227  
225     // Store  options i n cookies,  if possib le   228     // Store  options i n cookies,  if possib le
226     //   229     //
227     if (this .mSettings .mbCookies )   230     if (this .mSettings .mbCookies )
228     {   231     {
229       // Set  accessibi lity optio n   232       // Set  accessibi lity optio n
230       //   233       //
231       if ((( this.mSett ings.mAcce ssible ==  "ask") &&   234       if ((( this.mSett ings.mAcce ssible ==  "ask") &&
232            ( VarURLPara m_Accessib le == null )) ||   235            ( VarURLPara m_Accessib le == null )) ||
233           (V arURLParam _Accessibl e == "ask" ))   236           (V arURLParam _Accessibl e == "ask" ))
234       {   237       {
235         WWHF rame.WWHBr owser.fSet Cookie(Var Accessible Cookie, Va rAccessibl e, this.mS ettings.mC ookiesDays ToExpire);   238         WWHF rame.WWHBr owser.fSet Cookie(Var Accessible Cookie, Va rAccessibl e, this.mS ettings.mC ookiesDays ToExpire);
236       }   239       }
237     }   240     }
238     241  
239     // Set i mplementat ion   242     // Set i mplementat ion
240     //   243     //
241     this.mIm plementati on = VarIm plementati on;   244     this.mIm plementati on = VarIm plementati on;
242     245  
243     // Final ize URL pa rameters   246     // Final ize URL pa rameters
244     //   247     //
245     if (VarA ccessible  == "true")   248     if (VarA ccessible  == "true")
246     {   249     {
247       this.m Parameters  += "&acce ssible=tru e";   250       this.m Parameters  += "&acce ssible=tru e";
248     }   251     }
249     if (this .mParamete rs.length  > 0)   252     if (this .mParamete rs.length  > 0)
250     {   253     {
251       // Usi ng a "# to  support b ookmarks a fter the r edirect   254       // Usi ng a "# to  support b ookmarks a fter the r edirect
252       //   255       //
253       this.m Parameters  = "#" + t his.mParam eters;   256       this.m Parameters  = "#" + t his.mParam eters;
254     }   257     }
255   }   258   }
256     259  
257   function   WWHSwitch_ Switch(Par amFrameSet URL)   260   function   WWHSwitch_ Switch(Par amFrameSet URL)
258   {   261   {
259     var  Swi tchURL;   262     var  Swi tchURL;
260     263  
261     264  
262     // Add p arameters  to redirec t   265     // Add p arameters  to redirec t
263     //   266     //
264     SwitchUR L = ParamF rameSetURL  + this.mP arameters;   267     SwitchUR L = ParamF rameSetURL  + this.mP arameters;
265     268  
266     // Switc h to desir ed framese t   269     // Switc h to desir ed framese t
267     // Delay  required  since this  page is p rocessing  the action   270     // Delay  required  since this  page is p rocessing  the action
268     //   271     //
269     WWHFrame .WWHBrowse r.fReplace Location(" WWHFrame",  SwitchURL );   272     WWHFrame .WWHBrowse r.fReplace Location(" WWHFrame",  SwitchURL );
270   }   273   }