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

WordPress Trac noreply at wordpress.org
Fri Dec 15 18:14:04 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
Component:  Administration                      |  Review
 Severity:  normal                              |     Version:
 Keywords:  ux-feedback has-patch dev-feedback  |  Resolution:
                                                |     Focuses:
                                                |  administration
------------------------------------------------+--------------------------

Comment (by antonioeatgoat):

 Replying to [comment:4 antonioeatgoat]:
 > Replying to [comment:2 johnbillion]:
 > > The `online` and `offline` events can also be used to detect a change
 in connectivity state. More info: https://mxb.at/blog/youre-offline/
 >
 > How do you expect to use the listeners exactly? Showing an alert with
 ''"You are offline"'' and ''"You are online again"'' or something else?

 Replying to myself: the listeners could be used to trigger `heartbeat-
 connection-lost` and `heartbeat-connection-restored`, in order to show the
 alert and disable the submit buttons. At least where this feature already
 exists.

 However I wouldn't remove totally the warn solution previously sent,
 because it is much easier to apply to all other forms.

 [[Image(https://serving.photos.photobox.com/585305983f695ac7f0c8cfda330917753733829f189b3c3c0794a52a554a8ab932004ce7.jpg)]]

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


More information about the wp-trac mailing list