A slightly more elegant way of dealing with 'item==null' issue
[mono.git] / mcs / class / System.Web / resources / ChangeLog
1 2007-09-29  Marek Habersack  <mhabersack@novell.com>
2
3         * WebUIValidation_2.0.js: replace all the ocurrences of 'this' with
4         'webForm'. The reason for such change is that under certain
5         circumstances the function may be called on an object which is not
6         the original webForm to which the function was assigned. This
7         happens, for instance, in the AJAX Control Toolkit which wraps the
8         ValidatorGetValue function with its own version and calls the
9         original function on a Function object, so 'this' in that instance
10         becomes a 'function()' and not the original 'Window' object.
11
12 2007-08-30 Igor Zelmanovich <igorz@mainsoft.com>
13
14         * WebUIValidation_2.0.js:
15         all Validators use RegisterExpandoAttribute for 
16         not XHTML compliant attributes.
17
18 2007-08-30 Igor Zelmanovich <igorz@mainsoft.com>
19
20         * WebUIValidation_2.0.js: refactoring.
21         initialize evaluationfunction property for validator on client.
22         makes it compatible with AjaxControlToolkit.    
23
24 2007-08-30 Igor Zelmanovich <igorz@mainsoft.com>
25
26         * webform.js: fixed MaintainScrollPositionOnPostBack feature.
27
28 2007-08-19  Marek Habersack  <mhabersack@novell.com>
29
30         * webform.js: __doPostBack is a function defined in the self
31         object, not this._form. Fixes bug #82478.
32
33 2007-07-24 Igor Zelmanovich <igorz@mainsoft.com>
34
35         * webform.js:
36         * WebUIValidation_2.0.js:
37         refactoring: provide possibility to define relevant functions in different 
38         scopes. (global=window or form element). thus providing a solution for 
39         multi form environment.         
40
41 2007-05-16  Marek Habersack  <mhabersack@novell.com>
42
43         * webform.js: in WebForm_ClientCallback set the id of the
44         __EVENTVALIDATION element when creating it or otherwise
45         WebForm_getFormData will not ignore it as expected by
46         WebForm_DoCallback, which will result in the variable being
47         present twice in the POST request.
48
49         * WebUIValidation.js: ported ToCurrency and ToDate converters from
50         WebUIValidation_2.0.js.
51
52 2007-04-17  Marek Habersack  <mhabersack@novell.com>
53
54         * WebUIValidation_2.0.js: added HaveRegexp () function to detect
55         if the browser supports the RegExp class. Use GetElement ()
56         everywhere.
57
58         * WebUIValidation.js: added HaveRegexp () function to detect if
59         the browser supports the RegExp class.
60
61         * webform.js: use WebForm_GetElementById everywhere.
62
63 2007-04-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
64
65         * webform.js: fixed WebForm_RestoreScrollPosition, old submit call
66         should be from form
67
68 2007-04-03  Marek Habersack  <mhabersack@novell.com>
69
70         * WebUIValidation_2.0.js: correctly validate against min/max
71         values. Fixes bug #81280
72
73 2007-02-20 Igor Zelmanovich <igorz@mainsoft.com>
74
75         * webform.js: adjusted client script for MaintainScrollPositionOnPostBack 
76         feature to multiform enviroument in j2ee portal.
77
78 2007-02-19 Igor Zelmanovich <igorz@mainsoft.com>
79
80         * webform.js: fixed WebForm_ReEnableControls
81
82 2007-02-18  Eyal Alaluf <eyala@mainsoft.com>
83
84         * webform.js: Adding an optional parameter for passing the form to all JS
85           methods. This is needed to support Http callbacks for J2EE portlets. 
86
87 2007-02-18 Igor Zelmanovich <igorz@mainsoft.com>
88
89         * WebUIValidation_2.0.js: 
90         support client side validation for RadioButtonList
91
92 2007-02-04 Igor Zelmanovich <igorz@mainsoft.com>
93
94         * webform.js:
95         fixed Callback feature: when WebForm_DoCallback is called 
96         not all input elements are posted. for example checkbox if not 
97         checked is not posted.
98
99 2007-02-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
100
101         * webform.js: added validators context init for j2ee portal support
102         * WebUIValidation_2.0.js: added SetValidatorContext function,
103         refactored evaluation function init ValidatorOnLoad and
104         Page_ClientValidate
105
106 2007-02-04 Igor Zelmanovich <igorz@mainsoft.com>
107
108         * MaintainScrollPositionOnPostBack.js:
109         * webform.js:
110         * callback.js:  
111         merged into one resource file.
112
113 2007-02-01  Adar Wesley <adarw@mainsoft.com>
114
115         * webform.js: fixed WebForm_GetFormFromCtrl to find controls by id
116         after chaning UniqueId implementation to have '$'.
117
118 2007-01-30  Vladimir Krasnov  <vladimirk@mainsoft.com>
119
120         * webform.js: fixed WebForm_DoPostback, no need to find form if url is
121         null
122
123 2007-01-25 Eyal Alaluf <eyala@mainsoft.com>
124
125         * MaintainScrollPositionOnPostBack.js, callback.js, webform.js: Under
126           TARGET_J2EE portlet support we may have more then one ASP.Net form in a
127           client page. Modify code to not assume we have a global 'theForm'
128           variable. We either lookup the form using the control ID and DOM hierarchy
129           or we receive it as an optional parameter to the function.
130
131 2006-12-31 Igor Zelmanovich <igorz@mainsoft.com>
132
133         * webform.js: WebForm_AutoFocus support for not focusable elements 
134         by setting focus on first focusable child.
135
136 2006-12-31 Igor Zelmanovich <igorz@mainsoft.com>
137
138         * callback.js: fixed: support IE7, encodeURIComponent is used to 
139         encode form.
140
141 2006-09-14 Igor Zelmanovich <igorz@mainsoft.com>
142
143         * WebUIValidation_2.0.js: added new file
144
145 2006-03-13  Chris Toshok  <toshok@ximian.com>
146
147         * WebUIValidation.js (CompareValidatorEvaluateIsValid): implement.
148
149 2006-01-15  Robert Jordan  <robertj@gmx.net>
150
151         * WebUIValidation.js (CustomValidatorEvaluateIsValid):
152           Allow empty/missing ControlToValidate attributes.
153         * WebUIValidation.js (ValidatorSucceeded):
154           Hide validator's view. Fixes bug #77261.
155
156 2005-10-18  Chris Toshok  <toshok@ximian.com>
157
158         * WebUIValidation.js: fix handling for validation_result so that
159         buttons that don't cause validation still work.  Fixes bug #76429.
160
161 2005-09-13  Chris Toshok  <toshok@ximian.com>
162
163         * WebUIValidation.js (CustomValidatorEvaluateIsValid): the default
164         if an evaluationfunc wasn't provided is "valid".  Fixes #76078.
165
166 2005-09-06  Chris Toshok  <toshok@ximian.com>
167
168         * webform.js (wasControlEnabled): use __enabledControlArray,
169         generated by the HtmlControl foo when using
170         SubmitDisabledControls.
171         (WebForm_ReEnableControls): used by HtmlForm's
172         SubmitDisabledControls.
173
174 2005-09-06  Chris Toshok  <toshok@ximian.com>
175
176         * WebUIValidation.js (ValidatorCommonOnSubmit): reorder things so
177         that for validationsummary's we show the message box after we
178         display the summary.  This is because the alert blocks further
179         execution.
180         (ValidatorGetErrorMessage): return the errormessage in preference
181         to the text.
182         (ValidatorGetText): new function, return the text in preference to
183         the error message.
184         (ValidatorFailed): use ValidatorGetText, and always set the
185         innerHTML, not just when we don't have validationsummary's.
186         
187 2005-08-27  Chris Toshok  <toshok@ximian.com>
188
189         * webform.js: add copyright blurb, and add implementation of
190         WebForm_AutoFocus, used by the 2.0 HtmlForm properties
191         DefaultButton and DefaultFocus.
192
193 2005-08-04  Chris Toshok  <toshok@ximian.com>
194
195         * WebUIValidation.js (CustomValidatorEvaluateIsValid): correct the
196         args.IsValid check.
197
198 2005-08-04  Chris Toshok  <toshok@ximian.com>
199
200         * WebUIValidation.js (ValidatorOnLoad): set "enabled" == "true" if
201         there's no attribute present.
202         (Page_ClientValidate): a validator succeeds if it's disabled.
203
204 2005-07-27  Chris Toshok  <toshok@ximian.com>
205
206         * WebUIValidation.js (ValidatorCommonOnSubmit): fix formatting of
207         List and SingleParagraph mode ValidationSummaries.
208         (ValidatorTrim): use two regexps instead of two while loops.
209         (CustomValidatorEvaluateIsValid): new function.
210
211 2005-07-26  Chris Toshok  <toshok@ximian.com>
212
213         * WebUIValidation.js: fix the summary mode for
214         ValidationSummaries.
215
216 2005-07-25  Chris Toshok  <toshok@ximian.com>
217
218         * WebUIValidation.js (RangeValidatorEvaluateIsValid): fix this -
219         GetAttribute is dead, long live validator.getAttribute.
220
221 2005-07-24  Chris Toshok  <toshok@ximian.com>
222
223         * WebUIValidation.js: add support for validation summaries, both
224         in summary and messagebox mode.
225
226 2005-07-22  Chris Toshok  <toshok@ximian.com>
227
228         * WebUIValidation.js: the JSUnit tests pointed out that
229         validator.evaluationfunction is not a string after OnLoad.  do
230         this as well so the tests pass, and deal with the difference
231         between o[attr], o.getAttribute(attr), and o.attr. Ugh.
232
233 2005-07-21  Chris Toshok  <toshok@ximian.com>
234
235         * WebUIValidation.js (RequiredFieldValidatorEvaluateIsValid): trim
236         both the initial value and the control's value.
237
238 2005-07-21  Chris Toshok  <toshok@ximian.com>
239
240         * WebUIValidation.js: handle validators that use
241         Display="Dynamic".
242
243 2005-07-20  Chris Toshok  <toshok@ximian.com>
244
245         * WebUIValidation.js (ValidatorTrim): new function.
246         (RangeValidatorEvaluateIsValid): use ValidatorGetValue and
247         ValidatorTrim.
248         (RegularExpressionValidatorEvaluateIsValid): same.
249         (RequiredFieldValidatorEvaluateIsValid): same.
250
251 2005-07-20  Chris Toshok  <toshok@ximian.com>
252
253         * WebUIValidation.js: new file.
254
255 2005-03-11  Lluis Sanchez Gual <lluis@novell.com>
256
257         * webform.js: ClientSubmit option set to true means submit
258         performed by asp.net, not by the browser.
259
260 2005-02-04  Lluis Sanchez Gual <lluis@novell.com>
261
262         * webform.js: Added webform script.
263
264 2005-01-10  Lluis Sanchez Gual <lluis@novell.com>
265
266         * arrow_up.gif, arrow_down.gif: Added menu resources.
267
268 2004-12-02  Lluis Sanchez Gual <lluis@novell.com>
269
270         * callback.js: Added callback script.
271
272 2004-11-26  Lluis Sanchez Gual <lluis@novell.com>
273
274         * arrow_minus.gif, arrow_noexpand.gif, arrow_plus.gif, box_full.gif,
275         box_empty.gif, box_minus.gif, box_noexpand.gif, box_plus.gif,
276         contact.gif, dot_empty.gif, dot_full.gif, dots.gif,
277         inbox.gif, star_empty.gif, star_full.gif, warning.gif,
278         TreeView_noexpand.gif, TreeView_dash.gif, TreeView_dashminus.gif,
279         TreeView_dashplus.gif, TreeView_i.gif, TreeView_l.gif,
280         TreeView_lminus.gif, TreeView_lplus.gif, TreeView_minus.gif,
281         TreeView_plus.gif, TreeView_r.gif, TreeView_rminus.gif,
282         TreeView_rplus.gif, TreeView_t.gif, TreeView_tminus.gif,
283         TreeView_tplus.gif, System.Web.UI.WebControls/TreeView.js
284         
285         New files.