38. Araxis Merge File Comparison Report

Produced by Araxis Merge on Wed Jan 21 22:23:31 2009 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.

38.1 Files compared

# Location File Last Modified
1 Q:\Formats.2008.3.20682\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts switch.js Mon Oct 13 05:51:54 2008 UTC
2 Q:\Formats.2008.4.20859\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts switch.js Mon Jan 19 18:02:38 2009 UTC

38.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 10 538
Changed 8 8
Inserted 0 0
Removed 0 0

38.3 Comparison options

Whitespace Differences in whitespace at the start of lines are ignored
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Shown in the comparison detail

38.4 Active regular expressions

Expression Description
\$(Id|Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments
<LastModified>.*</LastModified> last modified
- Title ignore - Title

38.5 Comparison detail

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