Friday, 19 February 2010

Information About The Web Forms And More

Hi today I am sharing with you about the HTML, CSS and JavaScript information as I found it so good and really good to have this knowledge on your tips. As web interaction has evolved over the years, methods of ensuring a form has been filled out correctly have changed with it. No longer is it acceptable to spam the user with a separate JavaScript alert box for each ‘mistake’ they made. In fact we’ve learned that many of the problems people encounter with forms can be designed out with useful instructional copy and inline hints. But when that submit button is clicked, it’s still important to check the form over and communicate back to the user if there’s a problem:: You can validate the data on the server side, and then re-render the page to highlight any problems, or you can validate the data on the client side using JavaScript and highlight the errors before the form is submitted. Actually, following best practice you should do both. You can’t rely on JavaScript being available, so server-side validation is a good fallback and also provides important security checks. Then, when JavaScript is available the progressive enhancement of the client-side display method will be a much nicer experience for the user. So, assuming you’ve got the logic for your server-side validation worked out, it would be great to use that same logic on the client-side validation worked out, it would be great to use that same logic on the client-side and avoid having to define all the rules in both places. Fortunately, a JavaScript data format called JSON can make this process re-use simple.

The JSON format: JavaScript Object Notation (JSON) is a handy method of moving data around in a web application. As the name suggests, it uses the standard JavaScript object format to store and manage data, and can be used in an Ajax response as an alternative to XML or plain text content. As this is JavaScript-native data, there’s no overhead on the client of parsing XML or text into something the language can use. And by exposing the form validation logic as JSON data, we can check our user’s inputs against it and update the form without having to round-trio to the server or duplicate the logic in JavaScript code. For more information read the dotnet magazine and know more about the web form validation by the experts or go online and search you will find the great information with examples too.

No comments:

Thank you for your time.

Thanks alot to stay here.