Skip to content

Tags: webforms-core/WebFormsJS

Tags

v2.2.0

Toggle v2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add files via upload

WebFormsJS_2.1

Toggle WebFormsJS_2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update web-forms.js

## WebFormsJS 2.1

WebFormsJS 2.1 is another major update with many new features, improvements and bug fixes.

### New features

* Added high-level declarative features
* Added support for declarative and model-driven UI development
* Added support for automatic UI generation based on models and metadata
* Added advanced Condition features
* Added `else` support for Conditions
* Completely redesigned the Condition system
* Added `ForEach` feature
* Added support for nested Conditions and loops
* Added powerful WebForms Place Criteria (WPC) query language
* Extended the Element Place selection DSL
* Added the ability to select all elements using `All` or `*`
* Added advanced Criteria support for selecting and filtering elements
* Added the ability to select the HTML tag using `.` in InputPlace
* Added attribute and attribute-value based element selection
* Added a powerful Child selector
* Added `CheckValidityForFormSubmit`
* Added `UseLoaderForFirstPageLoad` option
* Added `StateBodyLocation` option
* Added dynamic `cb_ChangeOption` and `cb_ResetOption` methods
* Added `AppendCacheValue`
* Added `ReplaceCacheValue`
* Added `AppendSessionCacheValue`
* Added `ReplaceSessionCacheValue`
* Added support for accessing URL after the hash in `SetMasterPage`
* Added URL and Hash Segment feature
* Added negative Segment indexes, including `-1` for the last Segment
* Added Query methods to the `Fetch` helper class
* Added the ability to retrieve Query values by name
* Added Template Engine
* Added `BindTemplate`
* Added Debugger
* Added `ReplaceActionControl`
* Added `AppendFetchReplace`
* Added `AssignReplace`
* Added advanced JSON path operations with conditional queries and negative indexing
* Added `LoadState`
* Added `HasState` to the `Fetch` helper class
* Added `SSEIsConnected` to the `Fetch` helper class
* Added `WebSocketIsConnected` to the `Fetch` helper class
* Added `AddLogForHTTP` option
* Added the ability to access WebFormsJS and JavaScript data using `$` and `$@`
* Added overloads for integer arguments
* Added support for using Fetch commands in integer arguments

### Action Controls and Data

* Changed Action Control string values to arrays
* Added full control over Fetch values and value types
* Added support for multiple data types in Action Control values
* Added new Append and Replace operations for temporary and persistent stored data
* Improved Add, Read, Delete and Edit operations for JSON
* Improved support for dynamic data processing in Action Controls

### State and SPA

* Improved State management
* Improved SPA Link State and browser history management
* Improved synchronization between State and browser Back and Forward buttons
* Added `StartState` to execute HtmlComment commands after browser history navigation
* Improved State handling for Query and Hash URLs
* Added `IgnoreQueryAndHashInSPALink` option
* Improved SPA scrolling behavior
* Fixed additional requests generated by conditional states
* Changed the position of the indexing process before conditional states
* Improved State compatibility with browser history

### WebForms Place Criteria

* Added WebForms Place Criteria (WPC)
* Extended the DSL for selecting DOM elements and client-side objects
* Added attribute-based selection
* Added advanced element filtering and criteria operations
* Added support for powerful child element selection
* Added support for selecting all elements with `*`

### Loader and State

* Added Loader support for registering the initial State
* Added optional Loader animation for the first page load
* Improved State response location handling
* Added support for storing the State body separately from `ResponseLocation`
* Added support for storing attributes of selected elements in State
* Added support for storing values of `input`, `select` and `textarea` elements in State
* Improved SPA State synchronization with browser history

### WebFormsJS and Browser Compatibility

* WebForms Core 2.1 supports JavaScript ES2020 and modern browsers based on common web standards from 2020–2021 and later
* Improved compatibility with older browsers and devices
* Added compatibility support for modern browsers running on Windows 7
* Improved compatibility with mobile devices released from 2015 onward

### Security and Standards

* Removed `trim` after HTML comments in WebForms responses to improve security
* Updated `ExportToHtmlComment` to fully comply with HTML comment syntax
* Prevented invalid `--` sequences and trailing `-` characters in HTML comments
* Improved handling of HTML comments in WebForms responses
* Added several measures to prevent memory leaks
* Improved Garbage Collection handling

### Breaking and Structural Changes

* Changed the Separator characters from `|` and `,` to ASCII control characters 28, 29, 30 and 31
* Removed the `web-forms` tag permanently
* Action Controls can now be called offline using the flexibility of `CommentBack`
* Removed `Session` and `Session Cache` naming
* `Save` is now used instead
* Removed `TRACE` and `CONNECT` methods
* `PUT` can now send server requests outside a `form` tag
* Renamed the `AppendPlace` extension function to `Child`
* `$` is now used to access WebFormsJS and JavaScript data
* Use `$$` to escape `$`

### Other Improvements

* Improved response location configuration
* Improved `CommentBack` event handling
* Improved Action Control changes for multiple InputPlaces such as `<button>*`
* Improved `AddState` to support changing the title at the same time
* Improved message, confirm and alert features and synchronized them with page State
* Improved URL filtering in WebFormsJS settings
* Improved `IncreaseHeight` and `IncreaseWidth`
* Improved SPA link behavior and scrolling
* Improved methods and overall performance
* Added several minor improvements and optimizations

### Bug Fixes

* Fixed an issue where events could not be added to `CommentBack`
* Fixed an issue with changing Action Controls for InputPlace lists
* Fixed an issue where `AddState` could not change the title simultaneously
* Fixed an issue with additional requests in conditional states
* Fixed an issue with selecting multiple elements when the result contained only one element
* Fixed an issue with the WebFormsJS DSL when selecting elements for Conditions
* Fixed an issue that caused SSE to execute inside Service Workers
* Fixed an issue with SPA link scrolling
* Fixed several State management issues
* Fixed several minor memory management issues
* Fixed several minor bugs in WebForms Core and WebFormsJS

### Quality Assurance

More than three months were spent writing compatibility and synchronization tests between the WebForms class and the WebFormsJS library.

WebForms Core 2.1 has been extensively tested, with more than 99% quality assurance coverage. The WebForms class is highly stable, and any reported issues in WebFormsJS will be addressed promptly in subsequent 2.1.x releases while maintaining full compatibility with WebForms Core 2.1.

WebFormsJS_2.0

Toggle WebFormsJS_2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add files via upload

WebFormsJS_1.9

Toggle WebFormsJS_1.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update web-forms.js

WebFormsJS_1.8

Toggle WebFormsJS_1.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

WebFormsJS_1.7

Toggle WebFormsJS_1.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

WebFormsJS_1.6

Toggle WebFormsJS_1.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

WebFormsJS_1.5

Toggle WebFormsJS_1.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

WebFormsJS_1.4

Toggle WebFormsJS_1.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update web-forms.js

WebFormsJS_1.3

Toggle WebFormsJS_1.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md