10 Sept 2013

What you can do with javascript:

Introduction:
                                
Its time to look back from he details lets take an advance look what JavaScript can do for us. You want to use JavaScript in your web pages, why ? Right now you'd hard pushed to get a job as a web developer without javascript skills.
 
what JavaScript can do ?            
     Lets take look back what JavaScript can do for us.                  

  • Fixing web browser problem or patch holes in web browser support.
  • It can work on user's support.
  • JavaScript allows you to create highly interactive interfaces that improve user's experience and provide dynamic functionality without having to wait for server to show another page.
  • JavaScript is able to test for what is possible in your web browser and react.(this is also called defensive scripting ).
  • JavaScript implementation is very easy. All you need to put code in HTML document and simply tell the web browser that it is JavaScript.
  • JavaScript works on web user's computer even the user is offline.
  • JavaScript is commonly referred to as Ajax. It can load content in to the document when the user needs it. without reloading the entire page.                                                                                                     
That is a lot for a language. one part of the renaissance of JavaScript is that Building and creating more complex and intractable web application. These days as the web  standards JavaScript is the best choice. The main merit of JavaScript is its compatibility with open web standards.

Modern uses of JavaScript:


And this is often essentially what we have a tendency to do of late with JavaScript. we have a tendency to enhance the recent, tried and true net interface — clicking links, coming into data and causation off forms, etc. — to be additional conscious of the top user. For example:
  • A sign-up type will check if your user name is available once you enter it, preventing you from having to endure a frustrating reload of the page.
  • A search box can provide you with instructed results whereas you kind, supported what you’ve entered thus far (for example “bi” might talk about suggestions to decide on from that contain this string, like “bird”, “big” and “bicycle”). This usage pattern is named autocomplete.
  • Information that changes constantly is loaded sporadically while not the necessity for user interaction, as an example sports match results or exchange tickers.
  • Information that's a nice-to-have and runs the danger of being redundant to some users is loaded once and if the user chooses to access it. as an example the navigation menu of a website may well be half dozen links however show links to deeper pages on-demand once the user activates a menu item.
  • JavaScript can fix layout problems. exploitation JavaScript you'll realize the position and space of any component on the page, and also the dimensions of the browser window. exploitation this data you'll forestall overlapping parts and alternative such problems. Say as an example you've got a menu with many levels; by checking that there's area for the sub-menu to seem before showing it you'll forestall scroll-bars or overlapping menu things.
  • JavaScript can enhance the interfaces hypertext mark-up language provides America. whereas it's nice to own a text input box you would possibly wish to own a jazz band box permitting you to decide on from an inventory of predetermined values or enter your own. exploitation JavaScript you'll enhance a traditional input box to try and do that.
  • You can use JavaScript to animate parts on a page — as an example to point out and conceal data, or highlight specific sections of a page — this will play a additional usable, richer user expertise. there's additional data on this within the JavaScript animation article shortly within the course.  

No comments:

Post a Comment