daranguiz / barbell-io

Lift yourself up by your Bootstrap(s)
http://barbell.io
MIT License
1 stars 2 forks source link

Flash Usage? #31

Open bradysalz opened 8 years ago

bradysalz commented 8 years ago

I've never seen that outside of a test environment. Would recommend changing all flashes to AJAX calls to a backend API that manages all the DB interaction.

kashev commented 8 years ago

Can you elaborate pls? Specifically would like to know if this is a bug/enhancement, or is something should be on the MVP milestone.

bradysalz commented 8 years ago

Idk what's "proper" but I really liked the method I had for my site:

  1. Templates have buttons that run JS functions. Example
  2. Function makes an AJAX call to the server Example
  3. Server parses data, CRUD, etc. Returns AJAX call Example
  4. The JS function's AJAX callback updates the template Example

I would move to MVP just because you really need to pick a defined API interaction flow.

kashev commented 8 years ago

ty @bradysalz