Solved

Question on when AJAX is used

Posted on 2014-09-23
9
246 Views
Last Modified: 2014-09-23
AJAX has grown in popularity, and yet JavaScript is so easy to disable within a browser. I also know that AJAX's usefulness is the ability to avoid a total page load and just update certain parts of a page quickly and efficiently.

I was thinking of writing an application that would have very minimal page reloads by relying heavily on AJAX and DOM manipulation to cause page UI changes. I'm just trying to get a feel here on how developers approach this (since I'm new to this platform). Surely AJAX wouldn't be this prevalent if it's so easily rendered useless.

Can I get opinions/comments from experienced and expert developers out there on this subject? Because I'm sure you folks went through this stage I'm going through at one time or another, and I'm interested in your thoughts/insights.

Thanks.
0
Comment
Question by:elepil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 250 total points
ID: 40340381
The days of browsers without js support is pretty much over, there are still some browsers in use but by a tiny fraction of people (devices).
Having js disabled in your browser would pretty much preclude you from using the internet and pretty much all the top websites.

https://gds.blog.gov.uk/2013/10/21/how-many-people-are-missing-out-on-javascript-enhancement/
0
 

Author Comment

by:elepil
ID: 40340394
Gary, thanks for your feedback. I am aware that people who disable JavaScript would not have fun shopping at Amazon.com. So with your response, are you implying that you do not really take this handful of non-JavaScript users into consideration anymore when you write an application? I'm particularly interested in how employers see this; do they even care anymore if a user has JavaScript disabled when they build their business sites? Thanks.
0
 
LVL 58

Expert Comment

by:Gary
ID: 40340408
The general consensus is that they should be able to browse the site easily enough and, for example, in a shopping site, add to the basket and check out.
The js should be used to add all the fancy stuff like adding to the basket without reloading the page, when there is no js then the page will need to be reloaded.

I said preclude you from using the internet - that's erroneous, what I meant was being able to utilise the internet the way a site might be intended to be used.
0
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 

Author Comment

by:elepil
ID: 40340442
Gary, I get it that if one has decided to include non-JavaScript users into consideration, that one has to plan for that during development. But you didn't answer the other question -- from your experience with employers, do they for the most part require developers to take these minority of users into consideration?

I came from Adobe Flex where applications live within Flash player, a platform where this concern was a non-issue. So I need to get a feel whether or not employers generally require developers to cover non-JavaScript users as well. What is your opinion?
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 40340451
JavaScript and HTTP cookies are more-or-less requirements for functionality of most popular web sites today.  While it's true that the client can disable both of these capabilities, I'm 100% with Gary in saying that these clients are edge cases who can be ignored for most business purposes.  If you want to see what life is like on the internet, turn off your JS and then try to use Google, Amazon, eBay, or Facebook to name a few.

Government purposes may be different.

But since there is always that edge case, HTML has a tag for that.  Example here:
<noscript>Your browsing experience will be much better with JavaScript enabled!</noscript>

Open in new window

0
 
LVL 58

Expert Comment

by:Gary
ID: 40340452
Yes they will in some cases - depends on the company and type of website, a website shouldn't be dependant on Js to work at the most basic level e.g. click some links to see the different pages.
Js should be used to supplement the website.
0
 

Author Comment

by:elepil
ID: 40340457
Ray, thanks for your feedback. Like with Gary, I ask you the same thing. Based on your experience and observations, do employers out there require developers to still take non-JavaScript users into consideration?
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 40340471
My sense is "yes, but..."  Most business employers will make business decisions, and if the cost to build the site increases markedly when you're building for non-JS browsers, they may decide to trade off the cost against the expected value.  I've seen sites that said nothing more in the noscript tag than "You must have JavaScript enabled to use this site."

On the other hand, government sites are not motivated by business choices.  These sites have all kinds of accessibility requirements, screen readers for the blind, controls for people with no hands, etc.  So I expect the answer will depend at least partly on who the employer might be.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40340477
On the sites that I maintain and have tracking data for, one shows 1.4% of the people have javascript disabled.  The other two sites are 0.5% and 0.1%.  My "business" employers know that I'm using javascript because they know it's needed for some things and they know they can't do it.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question