Commit Graph
53 Commits
Author SHA1 Message Date
Marek Habersack 6828b3a1c8 2010-06-15 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: fail gracefully if control to validate
	is not found (webForm.ValidatorGetValue and
	webForm.Page_ClientValidate). Fixes bug #609478

svn path=/trunk/mcs/; revision=158905
2010-06-14 23:25:07 +00:00
Marek Habersack ff8784c653 2009-10-05 Marek Habersack <[email protected]>
* Makefile ($(build_lib)): fixed a typo in dependency macro

2009-10-05  Marek Habersack  <[email protected]>

	* WebUIValidation_2.0.js: before using webFrom.Page_Validators,
	check if they are defined and not null. Fixes bug #542582

svn path=/trunk/mcs/; revision=143388
2009-10-05 11:15:03 +00:00
Jonathan Pryor 6e21b01bc5 * TranslationResources.resx (ErrOperationAborted): Send viewers of
this message to the Wiki for possible reasons they may get an
	  exception (and how to fix it).

svn path=/trunk/mcs/; revision=133515
2009-05-04 17:43:31 +00:00
Marek Habersack 6621e0b2f2 2009-04-03 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: CustomValidatorEvaluateIsValid calls the
	client-side evaluation function even if ControlToValidate is not
	set. Fixes bug #485458

svn path=/trunk/mcs/; revision=130979
2009-04-03 16:02:03 +00:00
Marek Habersack d02561966d 2008-09-25 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: do not trim the control value in
	CompareValidatorEvaluateIsValid.

svn path=/trunk/mcs/; revision=114105
2008-09-25 17:42:59 +00:00
Igor Zelmanovich 00f0221fc3 2008-01-21 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js:
	fixed CompareValidatorEvaluateIsValid.
	works correctly with operator="datatypecheck"

svn path=/trunk/mcs/; revision=93372
2008-01-21 09:29:02 +00:00
Igor Zelmanovich dc5657a2a6 2008-01-13 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92773
2008-01-13 09:38:32 +00:00
Igor Zelmanovich ac47ac4624 2008-01-10 Igor Zelmanovich <[email protected]>
* webform.js:
	implement useAsync feature for Callback.		


svn path=/trunk/mcs/; revision=92600
2008-01-10 16:46:48 +00:00
Igor Zelmanovich 9d9bc5d816 2008-01-10 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92579
2008-01-10 11:18:40 +00:00
Igor Zelmanovich 9bcca83dfe 2008-01-09 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js:
	* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92512
2008-01-09 15:31:10 +00:00
Marek Habersack 58eceab2ec 2007-12-08 Marek Habersack <[email protected]>
* TranslationResources.resx: added - string resources for the
	Sqlite providers.
2007-12-08  Marek Habersack  <[email protected]>

	* SQLiteProviders_DatabaseSchema.sql: added
	* Makefile: added support for compiling .resx resources.
	Added SQLiteProviders_DatabaseSchema.sql to EXTRA_DISTFILES.
	Added new resource files to EXTRA_DISTFILES
2007-12-08  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: initialize the Settings Mapping Manager once per
	application, just after initalizing the WebConfigurationManager
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: added - a Profile Provider for
        Sqlite, based on PostgreSQL Profile Provider code from Daniel
        Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* TranslationProperties.Designer.cs: added - contains strongly
	typed properties referring to string resources used by the Sqlite
	providers.
2007-12-08  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection now runs each section
	through a mapper (if any is defined for the section) before
	returning it to the caller.
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteRoleProvider.cs: added - a Role Provider for
	Sqlite, based on PostgreSQL Role Provider code from Daniel
	Nauck <[email protected]>

	* SqliteMembershipProvider.cs: added - a Membership Provider for
	Sqlite, based on PostgreSQL Membership Provider code from Daniel
	Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* SerializationHelper.cs: added - serialization helper for the
	Sqlite Profile Provider.

	* RoleManagerSectionMapper.cs: added - section settings mapper for
	the RoleManager section.

	* MembershipSectionMapper.cs: added - section settings mapper for
	the Membership section.

	* ISectionSettingsMapper.cs: added - interface definition for
	section settings mappers.

	* SettingsMappingWhat.cs: added - describes a single 'what' tag
	instance inside the mapper definition in the settings.map file.

	* SettingsMapping.cs: added - represents a single mapper entry in
	the settings.map file.

	* SettingsMappingManager.cs: added - manages settings mapping as
	defined in the settings.map file.


svn path=/trunk/mcs/; revision=90972
2007-12-07 23:26:18 +00:00
Marek Habersack 480357e02d 2007-11-20 Marek Habersack <[email protected]>
* WebUIValidation.js: fix regular expression validator. Fixes bug
	#342907.

svn path=/trunk/mcs/; revision=90037
2007-11-20 21:34:41 +00:00
Juraj Skripsky 83171dc0a4 2007-11-20 Juraj Skripsky <[email protected]>
* WebUIValidation_2.0.js: Fix typo. 


svn path=/trunk/mcs/; revision=89983
2007-11-20 15:43:16 +00:00
Juraj Skripsky f8253fa813 2007-11-06 Juraj Skripsky <[email protected]>
* webform.js (WebForm_FireDefaultButton): Gecko-based browsers
	don't support the click() method for <a/> elements. Use
	eval(myLink.href) instead.


svn path=/trunk/mcs/; revision=89036
2007-11-06 22:21:36 +00:00
Igor Zelmanovich 570efe42da 2007-11-05 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: 
	fixed RegularExpressionValidatorEvaluateIsValid function.	


svn path=/trunk/mcs/; revision=88865
2007-11-05 14:35:51 +00:00
Igor Zelmanovich ad90d5bdd2 2007-11-01 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: fixed ToInteger function.	
	value such '10.00' is not converted to integer.	


svn path=/trunk/mcs/; revision=88629
2007-11-01 09:37:50 +00:00
Marek Habersack 75b9a8988e 2007-09-29 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: replace all the ocurrences of 'this' with
	'webForm'. The reason for such change is that under certain
	circumstances the function may be called on an object which is not
	the original webForm to which the function was assigned. This
	happens, for instance, in the AJAX Control Toolkit which wraps the
	ValidatorGetValue function with its own version and calls the
	original function on a Function object, so 'this' in that instance
	becomes a 'function()' and not the original 'Window' object.

svn path=/trunk/mcs/; revision=86622
2007-09-28 23:51:55 +00:00
Igor Zelmanovich cd1eec7379 2007-08-30 Igor Zelmanovich <[email protected]>
* BaseCompareValidator.cs:
	* BaseValidator.cs:
	* CompareValidator.cs:
	* CustomValidator.cs:
	* RangeValidator.cs:
	* RegularExpressionValidator.cs:
	* RequiredFieldValidator.cs:
	all Validators use RegisterExpandoAttribute for 
	not XHTML compliant attributes.

2007-08-30 Igor Zelmanovich <[email protected]>

	* WebUIValidation_2.0.js:
	all Validators use RegisterExpandoAttribute for 
	not XHTML compliant attributes.


svn path=/trunk/mcs/; revision=85047
2007-08-30 13:45:21 +00:00
Igor Zelmanovich 75e734b1b9 2007-08-30 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: refactoring.
	initialize evaluationfunction property for validator on client.
	makes it compatible with AjaxControlToolkit.	


svn path=/trunk/mcs/; revision=85038
2007-08-30 08:38:13 +00:00
Igor Zelmanovich 26e133c649 2007-08-30 Igor Zelmanovich <[email protected]>
* Page.cs: fixed MaintainScrollPositionOnPostBack feature.

2007-08-30 Igor Zelmanovich <[email protected]>

	* webform.js: fixed MaintainScrollPositionOnPostBack feature.


svn path=/trunk/mcs/; revision=85037
2007-08-30 08:31:00 +00:00
Marek Habersack d0a3dcc57d 2007-08-19 Marek Habersack <[email protected]>
* webform.js: __doPostBack is a function defined in the self
            object, not this._form. Fixes bug #82478.

svn path=/trunk/mcs/; revision=84360
2007-08-18 23:42:48 +00:00
Igor Zelmanovich 7bba17dd3c 2007-07-24 Igor Zelmanovich <[email protected]>
* webform.js:
	* WebUIValidation_2.0.js:
	refactoring: provide possibility to define relevant functions in different 
	scopes. (global=window or form element). thus providing a solution for 
	multi form environment.		

2007-07-24 Igor Zelmanovich <[email protected]>

	* ClientScriptManager.cs:
	* Page.cs:
	* Page.jvm.cs:
	added new internal property IsMultiForm which returns false under
	!TARGET_J2EE (Portal). All client scripts are rendered 
	according this property.	
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* BaseValidator.cs: All client scripts are rendered 
	according IsMultiForm property.


svn path=/trunk/mcs/; revision=82648
2007-07-25 08:59:32 +00:00
Marek Habersack 58b8182d65 Revert 77463, since this commit introduces the correct fix for the problem.
2007-05-16  Marek Habersack  <[email protected]>

        * webform.js: in WebForm_ClientCallback set the id of the
        __EVENTVALIDATION element when creating it or otherwise
        WebForm_getFormData will not ignore it as expected by
        WebForm_DoCallback, which will result in the variable being
        present twice in the POST request.


svn path=/trunk/mcs/; revision=77475
2007-05-16 12:35:00 +00:00
Marek Habersack b58a012a86 2007-05-16 Marek Habersack <[email protected]>
* WebUIValidation.js: ported ToCurrency and ToDate converters from
	WebUIValidation_2.0.js.

2007-05-16  Marek Habersack  <[email protected]>

	* CompareValidator.cs: formatting changes


svn path=/trunk/mcs/; revision=77470
2007-05-16 11:36:30 +00:00
Marek Habersack b08d3647e6 2007-04-17 Marek Habersack <[email protected]>
* culevel/culevel.exe.sources: added

	* culevel/Makefile (thisdir): added

	* culevel/CompileUplevel.cs: added

	* Makefile (thisdir): added the culevel subdirectory to the list.

2007-04-17  Marek Habersack  <[email protected]>

	* Makefile (thisdir): added tools/culevel to the list of
	subdirectories - it must be compiled before compiling the classes
	since System.Web depends on it.

2007-04-17  Marek Habersack  <[email protected]>

	* Makefile (System.Web/UplevelHelper.cs): autogenerate the file if
	it doesn't exist.

	* System.Web.dll.sources: added the System.Web/UplevelHelper.cs
	file. It is autogenerated by the culevel compiler.

	* UplevelHelperDefinitions.xml: added default uplevel browsers
	definition file. This serves as input to the culevel compiler in
	the tools directory at the top of the mcs tree.

2007-04-17  Marek Habersack  <[email protected]>

	* WebUIValidation_2.0.js: added HaveRegexp () function to detect
	if the browser supports the RegExp class. Use GetElement ()
	everywhere.

	* WebUIValidation.js: added HaveRegexp () function to detect if
	the browser supports the RegExp class.

	* webform.js: use WebForm_GetElementById everywhere.

2007-04-17  Marek Habersack  <[email protected]>

	* HtmlForm.cs: use the new uplevel browser detection code.

2007-04-17  Marek Habersack  <[email protected]>

	* BaseValidator.cs: use the new uplevel browser detection code.


svn path=/trunk/mcs/; revision=75818
2007-04-17 13:13:03 +00:00
Vladimir Krasnov df9cbd0b12 * webform.js: fixed WebForm_RestoreScrollPosition, old submit call should be from form
svn path=/trunk/mcs/; revision=75614
2007-04-11 16:06:54 +00:00
Marek Habersack 0094f074bf 2007-04-03 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: correctly validate against min/max
	values. Fixes bug #81280


svn path=/trunk/mcs/; revision=75334
2007-04-03 09:37:36 +00:00
Igor Zelmanovich 1d8d624edf 2007-02-20 Igor Zelmanovich <[email protected]>
* webform.js: adjusted client script for MaintainScrollPositionOnPostBack 
	feature to multiform enviroument in j2ee portal.


svn path=/trunk/mcs/; revision=73151
2007-02-20 10:03:16 +00:00
Igor Zelmanovich 31ffabbbb0 2007-02-19 Igor Zelmanovich <[email protected]>
* webform.js: fixed WebForm_ReEnableControls

svn path=/trunk/mcs/; revision=73111
2007-02-19 12:49:38 +00:00
Eyal Alalouf 9396a91227 add Http callback support for J2EE portlets.
svn path=/trunk/mcs/; revision=73071
2007-02-18 12:28:38 +00:00
Igor Zelmanovich de3be96b77 2007-02-18 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: 
	support client side validation for RadioButtonList

svn path=/trunk/mcs/; revision=73066
2007-02-18 10:03:41 +00:00
Igor Zelmanovich 18af3d7394 2007-02-04 Igor Zelmanovich <[email protected]>
* webform.js:
	fixed Callback feature: when WebForm_DoCallback is called 
	not all input elements are posted. for example checkbox if not 
	checked is not posted.

svn path=/trunk/mcs/; revision=72733
2007-02-13 08:55:37 +00:00
Vladimir Krasnov ffc117e499 * webform.js: added validators context init for j2ee portal support
* WebUIValidation_2.0.js: added SetValidatorContext function, refactored evaluation function init ValidatorOnLoad and Page_ClientValidate
* ClientScriptManager.cs: added array declaration also as member of form in TARGET_J2EE for j2ee portal support. 
Added validators context init for GetClientValidationEvent under TARGET_J2EE for j2ee portal support.
* Page.cs: fixed OnFormPostRender, render array declarations after postback script.

svn path=/trunk/mcs/; revision=72465
2007-02-08 10:29:55 +00:00
Igor Zelmanovich 0f0f1e552c 2007-02-04 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	client scripts (webform.js, callback.js and 
	MaintainScrollPositionOnPostBack.js) were merged into one resource file.

2007-02-04 Igor Zelmanovich <[email protected]>

	* MaintainScrollPositionOnPostBack.js:
	* webform.js:
	* callback.js:	
	merged into one resource file.

svn path=/trunk/mcs/; revision=72408
2007-02-07 13:03:23 +00:00
Adar Wesley 2065e9c976 2007-02-01 Adar Wesley <[email protected]>
* webform.js: fixed WebForm_GetFormFromCtrl to find controls by id
        after chaning UniqueId implementation to have '$'.


svn path=/trunk/mcs/; revision=72103
2007-02-01 16:27:00 +00:00
Vladimir Krasnov ef8f078938 * webform.js: fixed WebForm_DoPostback, no need to find form if url is null
svn path=/trunk/mcs/; revision=71987
2007-01-30 18:03:19 +00:00
Eyal Alalouf 3d357ffc84 Add support for multiple fomrs on the client side in case of TARGET_J2EE portal support.
svn path=/trunk/mcs/; revision=71699
2007-01-25 18:12:05 +00:00
Igor Zelmanovich f1984593a3 2006-12-31 Igor Zelmanovich <[email protected]>
* webform.js: WebForm_AutoFocus support for not focusable elements 
	by setting focus on first focusable child.

svn path=/trunk/mcs/; revision=70285
2006-12-31 15:22:15 +00:00
Igor Zelmanovich 432952721b 2006-12-31 Igor Zelmanovich <[email protected]>
* callback.js: fixed: support IE7, encodeURIComponent is used to 
	encode the form.


svn path=/trunk/mcs/; revision=70281
2006-12-31 14:17:22 +00:00
Igor Zelmanovich fa30f3d51f implemented ValidationGroup feature on client side
svn path=/trunk/mcs/; revision=65387
2006-09-14 13:00:26 +00:00
Chris Toshok 86ff1cfd3f 2006-03-13 Chris Toshok <[email protected]>
* WebUIValidation.js (CompareValidatorEvaluateIsValid): implement.


svn path=/trunk/mcs/; revision=57925
2006-03-13 23:18:54 +00:00
Robert Jordan 52a9784f64 2006-01-15 Robert Jordan <[email protected]>
* WebUIValidation.js (CustomValidatorEvaluateIsValid):
	  Allow empty/missing ControlToValidate attributes.
	* WebUIValidation.js (ValidatorSucceeded):
  	  Hide validator's view. Fixes bug #77261.


svn path=/trunk/mcs/; revision=56093
2006-01-26 07:50:03 +00:00
Chris Toshok 9ca95371fe 2005-10-18 Chris Toshok <[email protected]>
* WebUIValidation.js: fix handling for validation_result so that
	buttons that don't cause validation still work.  Fixes bug #76429.


svn path=/trunk/mcs/; revision=51890
2005-10-18 21:17:10 +00:00
Chris Toshok 1527fdc717 2005-09-13 Chris Toshok <[email protected]>
* WebUIValidation.js (CustomValidatorEvaluateIsValid): the default
	if an evaluationfunc wasn't provided is "valid".  Fixes #76078.


svn path=/trunk/mcs/; revision=49976
2005-09-13 19:45:39 +00:00
Chris Toshok 15176b427c 2005-09-06 Chris Toshok <[email protected]>
* webform.js (wasControlEnabled): use __enabledControlArray,
	generated by the HtmlControl foo when using
	SubmitDisabledControls.
	(WebForm_ReEnableControls): used by HtmlForm's
	SubmitDisabledControls.


svn path=/trunk/mcs/; revision=49573
2005-09-06 20:40:34 +00:00
Chris Toshok dda9d6c2fd 2005-09-06 Chris Toshok <[email protected]>
* WebUIValidation.js (ValidatorCommonOnSubmit): reorder things so
	that for validationsummary's we show the message box after we
	display the summary.  This is because the alert blocks further
	execution.
	(ValidatorGetErrorMessage): return the errormessage in preference
	to the text.
	(ValidatorGetText): new function, return the text in preference to
	the error message.
	(ValidatorFailed): use ValidatorGetText, and always set the
	innerHTML, not just when we don't have validationsummary's.


svn path=/trunk/mcs/; revision=49556
2005-09-06 17:38:21 +00:00
Chris Toshok d080b7bc17 2005-08-27 Chris Toshok <[email protected]>
* webform.js: add copyright blurb, and add implementation of
	WebForm_AutoFocus, used by the 2.0 HtmlForm properties
	DefaultButton and DefaultFocus.


svn path=/trunk/mcs/; revision=48984
2005-08-27 19:58:25 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
Lluis Sanchez 15819244ed 2005-03-11 Lluis Sanchez Gual <[email protected]>
* webform.js: ClientSubmit option set to true means submit
	performed by asp.net, not by the browser.


svn path=/trunk/mcs/; revision=41699
2005-03-11 13:25:55 +00:00
Lluis Sanchez a1e7e25868 2005-02-04 Lluis Sanchez Gual <[email protected]>
* webform.js: Added webform script.


svn path=/trunk/mcs/; revision=40095
2005-02-04 00:50:01 +00:00