sparkartgroup-archive / sparkart.js

Easily interact with Sparkart's APIs via Javascript.
1 stars 0 forks source link

Widget forms reset/reinsert on submission #19

Closed pushred closed 11 years ago

pushred commented 11 years ago

When submitting the forms of widgets such as Login and Account, the widget seems to either reset or get reinserted into the DOM and triggering a page reload. That reload can take awhile to complete though sometimes, which I think will lead to users thinking something is wrong. They may likely attempt to submit the form again.

We should not reset/reinsert these forms at the least. I'd also recommend adding a class to the widget container and/or adding some events that we can use to provide feedback. For instance if you add the class 'loading' to the widget containers now their contents are hidden and we apply a spinner background image.