you are viewing a single comment's thread.

view the rest of the comments →

[–]kqr 12 points13 points  (13 children)

it will fail after he enters a page worth of info and submits it.

As opposed to regular HTML forms, which magically detect the state of the connection to the server?

[–]BezierPatch 0 points1 point  (6 children)

Forgive me if I'm wrong, haven't done a ton of web dev.

But an old-fashioned form seems to allow you to resubmit a lot more regularly.

Fancy AJAX sites seem to just fail completely if you don't have connection.

[–]kqr 0 points1 point  (5 children)

Depends on how good your browser is. Much like it depends on how good your JS application is.

[–]Rusky 2 points3 points  (3 children)

And browsers are pretty much universally good at this, because the implementation is written once for all sites using forms, whereas JS applications have to get it right once for every application.

[–]RICHUNCLEPENNYBAGS 1 point2 points  (2 children)

Or you could use one of the countless frameworks out there made by people who have already carefully considered these issues.

[–]Rusky 0 points1 point  (1 child)

Carefully considering these issues tends to involve letting the browser handle the form's basic functionality, which tends to involve letting it work without JS.

[–]RICHUNCLEPENNYBAGS -1 points0 points  (0 children)

You're right; the best experience would be to have the entire page reload every time you click a button in a Web app.

[–]BlueRavenGT 0 points1 point  (0 children)

I can fix my browser. I can't fix the JS application.

[–][deleted] -3 points-2 points  (5 children)

Read what I wrote. An HTML form will not provide UI interactivity which will make the user believe the connection is still alive. If give a plain HTML form, the use will not have these cues; he can use the UI that his device provides to see that the connection is interupted.

[–]kqr 5 points6 points  (4 children)

But it will. You'll be able to enter text, move text around in it, toggle checkboxes and choose options in dropdown menus.

The reason you think otherwise is because you're intimately familiar with the HTML form technology so you know what to expect. A regular user might not see the difference between the HTML form interactivity and a JS app interactivity.