Posts tagged java script

Javascript form validation

0

Client side validation is so important
by preventing the user from submitting wrong data into the server, it would be better for the server not receiving invalid data and it’s better for the user not to wait until the page reloads tells him that the data is incorrect.

some examples we may check for

  • Required
  • Length
  • Minimum/Maximum (numerical input)
  • Pattern (E-mail)

(more…)

Get cross-browsers AJAX Object

0


the default way to use the ajax feature is to make an instance from the XMLHttpRequest Object through this simplified statement

request = new XMLHttpRequest();

unfortunately older versions of Internet Explorer doesn’t have a native XMLHTTPRequest Object, but we can get one by getting it from an ActiveXObject

(more…)

Go to Top