[wp-trac] [WordPress Trac] #41535: Prevent or warn about offline status before submitting a form

WordPress Trac noreply at wordpress.org
Wed Aug 2 15:10:27 UTC 2017


#41535: Prevent or warn about offline status before submitting a form
-------------------------------------+------------------------------
 Reporter:  johnbillion              |       Owner:
     Type:  feature request          |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch ux-feedback  |     Focuses:  administration
-------------------------------------+------------------------------
Description changed by johnbillion:

Old description:

> For browsers that support it, the `navigator.offline` property reliably
> indicates that the browser is offline (the inverse isn't true, but it
> doesn't matter).
>
> Prior to submission of a form in the admin area (for example the post
> editing screen form), WordPress should check the value of
> `navigator.offline` and present a prompt to the user stating that they
> appear to be offline. They can close the prompt or, optionally, ignore it
> and continue with the form submission.
>
> This functionality would help prevent data loss when a user submits a
> form while they don't have an internet connection.

New description:

 For browsers that support it, the `navigator.online` property reliably
 indicates that the browser is offline (the inverse isn't true, but it
 doesn't matter).

 Prior to submission of a form in the admin area (for example the post
 editing screen form), WordPress should check the value of
 `navigator.online` and present a prompt to the user stating that they
 appear to be offline. They can close the prompt or, optionally, ignore it
 and continue with the form submission.

 This functionality would help prevent data loss when a user submits a form
 while they don't have an internet connection.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41535#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list