SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    SitePoint Addict
    Join Date
    Oct 2006
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    newb: all webpage done in javaScript

    What are the cons of having javaScript create the front end UI, while the server sends response in json format? Why would anyone want to disable javaScript in browser?

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some users are parnoided about ActiveX code in JavaScript and sometimes at work I disable JavaScript for certain sites because I run off a ThinClient not a PC and sometimes JAvaScript and Flash bog the browser down.

    Another downside is that search engines will not be able to index your site.

  3. #3
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    For general consumption Internet websites JavaScript should be an enhancement, not the primary means of delivering content.

  4. #4
    SitePoint Wizard bronze trophy bluedreamer's Avatar
    Join Date
    Jul 2005
    Location
    Middle England
    Posts
    3,417
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    ...and if a site uses a lot of javascript you should always provide an alternative no-js version

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that depends on the website target audience.

  6. #6
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with bluedreamer, it looks bad if your site is broken when JavaScript is turned off. Even if you want to direct non-JavaScript users away, you should at least use the noscript tags to tell them to leave. Though, mostly all the time you shouldn't dictate your site to only JavaScript specific users.

  7. #7
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let me give you the perfect reason. Disable JavaScript in your browser then go to www.visa.com (trust me).

  8. #8
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow that's bad when an actual buisness as big as Visa is JavaScript oriented. Mlb.com is the same way so visa isn't the only one we should hassle. Suprsing that some big companies like visa or a popular site like mlb will disregard non-js users. I'm glad you pointed that out Dan.

  9. #9
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You need to remember that around 10% of web users don't have JavaScript for one reason or another.

    Some of those who don't use JavaScript have disabilities and therefore can't use a JavaScript enabled browser even if they wanted to.

    Anti-discrimination laws in many countries prohibit discriminating against these disabled people which is what you are doing if you don't provide a version of your site that they can use.

    Some of these people have been known to sue big companies with inaccessible sites. I am surprised none of them hhas got around to suing Visa yet.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  10. #10
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Felgall stop giving the blind bad ideas! Visa is not going to get sued anytime soon though. It’s not because the blind are scared to pursue law suits, (felgall’s statement is correct they sue companies on the net regularly,) it’s because we all overlooked that only the homepage needs to be fixed.

  11. #11
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    I am not giving the blind ideas. There have already been several large department stores sued because blind people couldn't make their purchases online. I believe that the stores had to make some substantial payouts.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  12. #12
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall
    Some of these people have been known to sue big companies with inaccessible sites. I am surprised none of them hhas got around to suing Visa yet.
    Quote Originally Posted by felgall
    I am not giving the blind ideas.
    Me and visa both disagree

  13. #13
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    I wouldn't have thought blind people would be able to sue inaccessible web sites until I heard about a blind person getting a substantial payout from a major retail store because they couldn't make their purchases online because there was no option for doing so without JavaScript and had a successful court action against the store. I am not trying to give anyone ideas, just quoting past events. If it has already happened then it could happen again.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •