|
|
|
|
|
by jiggy2011
4805 days ago
|
|
If you write all of your code to run on the server then you need to pull down a full page from the server every time you want to update your data. There's plenty of reasons you might want to avoid this in some cases.
For example, you might want your forms to be validated without waiting for the user to push submit. You might have rich content in some markup language (like markdown) and you want the user to have a live preview on the same page as they are editing. Or you might have an app with real time data that changes frequently and you don't want the user to sit there pushing refresh constantly. |
|
You don't need to pull a whole page down to get new data and you can do the form validation on the client side although you need to redo the validation on the server side anyway to make sure the client JS hasn't been tampered with.