Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Question on when AJAX is used

Posted on 2014-09-23
Medium Priority
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.

Question by:elepil
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
LVL 58

Assisted Solution

Gary earned 1000 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.


Author Comment

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.
LVL 58

Expert Comment

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.
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!


Author Comment

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?
LVL 111

Accepted Solution

Ray Paseur earned 1000 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

LVL 58

Expert Comment

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.

Author Comment

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?
LVL 111

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.
LVL 84

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.

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …
Suggested Courses

730 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