Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"cSpell.words": [
"HSTS",
"iframe",
"iframes",
"nlog"
]
}
18 changes: 0 additions & 18 deletions Controllers/BackButtonController.cs

This file was deleted.

40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
# WebDLanding

Web-Direct landing page to suppress annoyances and route users to the appropriate solution.
Web-Direct Landing page for Wizard Web-Direct deployed solutions.

## Features

- `onbeforeunload` support.

Best effort to warn users that refreshing the page, or otherwise navigating away will lose their place in the system. Support varies by browser.

- Back button suppression / integration.

Avoid back button taking the user out of the solution, and provide support for solutions to listen to the native browser back button and react accordingly.

## Back Button Integration

WebDLanding provides an opportunity for back button support to be added, by posting a message to child iframes that the back button was pressed.

A sample of the web viewer content that must be provided on each layout:

```html
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
</head>

<body></body>

<script>
window.addEventListener("message", (d) => {
if (d.data === "BackButtonPressed") {
FileMaker.PerformScript("back_button", "");
}
});
</script>

</html>
```
22 changes: 0 additions & 22 deletions Views/BackButton/Index.cshtml

This file was deleted.