Skip to content

Commit a418f9e

Browse files
Update README.md
1 parent 3275023 commit a418f9e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -512,28 +512,28 @@ Example:
512512

513513
There are three overloads for the `GetBack` method:
514514

515-
- **`GetBack()`:** Requests the current URL path executed in the browser.
516-
- **`GetBack(this)`:** Should be used only in situations where the form tag must be present on the page. If executed inside a form, the action path requests the form, otherwise it requests the path of the first form on the page.
517-
- **`GetBack("YourURL")`:** Requests the URL path entered as an argument.
515+
- **`GetBack(event)`:** Requests the current URL path executed in the browser.
516+
- **`GetBack(event, this)`:** Should be used only in situations where the form tag must be present on the page. If executed inside a form, the action path requests the form, otherwise it requests the path of the first form on the page.
517+
- **`GetBack(event, "YourURL")`:** Requests the URL path entered as an argument.
518518

519-
Calling WebFormJS in HTML pages causes submit buttons to automatically get the onclick attribute with `PostBack(this)` value.
519+
Calling WebFormJS in HTML pages causes submit buttons to automatically get the onclick attribute with `PostBack(event)` value.
520520

521-
`<input name="btn_Button" type="submit" value="Click to send data" onclick="PostBack(this)"/>`
521+
`<input name="btn_Button" type="submit" value="Click to send data" onclick="PostBack(event)"/>`
522522

523523
If you call the `PostBack` method as below, the contents of the page will remain and the values ​​will be added to the beginning of the inner content of the body tag.
524524

525-
`PostBack(this, true)`
525+
`PostBack(event, true)`
526526

527527
You can specify where to add content instead of true.
528528

529529
Example1:
530530

531-
`PostBack(this, "<div>2")`
531+
`PostBack(event, "<div>2")`
532532
The above method places the data received from the server inside the third `div` tag.
533533

534534
Example2:
535535

536-
`PostBack(this, "MyTagId")`
536+
`PostBack(event, "MyTagId")`
537537
The above method puts the data received from the server inside a tag or `MyTagId` id.
538538

539539
> Note: Examples 1 and 2 for the `GetBack` method also have the same function.
@@ -542,7 +542,7 @@ The above method puts the data received from the server inside a tag or `MyTagId
542542

543543
Example:
544544

545-
`TagBack ("(my-class)-1")`
545+
`TagBack (event, "(my-class)-1")`
546546
The above method renders the action control of the last web-forms tag whose class name is my-class.
547547

548548
Example web-forms tag
@@ -553,6 +553,6 @@ Example web-forms tag
553553

554554
Example:
555555

556-
`WebSocketBack("/YourURL")`
556+
`WebSocketBack(event, "/YourURL")`
557557

558558
The above method creates a WebSocket connection to the path "/YourURL".

0 commit comments

Comments
 (0)