Client and Server side validation practices example code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2015 10:43 AM
I have been doing a lot of validation lately on Catalog items and I am using Catalog Client Scripts. This is fine, but I want a way to validate BOTH on the client and on the server.
What is the cleanest, most secure best practice way to do this?
I know I should use a client script to call a server-side script, preferably an asynchronously. I'm not exactly sure how to go about structuring my code. Can anyone share an example? I have been looking online and reading the wiki but I need a full end-to-end example to really solidify the way that I will be approaching my code.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2015 10:49 AM
Hi Leslie,
Please go through the below link which has an example.
Please let me know if you have any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2015 10:34 AM
thanks, I think I have the basics from the article. I was wondering if anyone has used this approach for client and server validation and if they could share an example? I have client validation very well but am still lost on how to structure the server validation in a way that meets best practices.
Thanks!