I think we can let you off with 22 minutes early.
After all you were posting in Technical just after half 3....
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Silly question perhaps - java script
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Silly question perhaps - java script"
Collapse
-
Originally posted by NickFitz View PostThe best (I would say only) approach to incorporating JS is progressive enhancement. Using this approach, users with JS disabled will still have access to all the content and features of the site or application, and JS is used to provide an enhanced experience to users with it enabled.
So if, for example, your animation is intended to reveal content that, if the animation does not run, will never be shown and will not be reachable by any other means, then you should reconsider your approach. It could be that you can cater for non-JS users merely by providing an explicit link to such content, which you then hide for JS users. A more sophisticated approach would have the content visible by default, then hidden by JS as the page loads, then finally shown via animation - a non-JS user would merely see the page before the content was hidden. (Hint: setting an additional class attribute value on the <body> element via JS, and a bit of CSS, are the way to do this without ugly flashing in and out of the content.)
For example, those drop-down menu bar navigation systems (which are the work of the devil) are inaccessible to non-JS users. However, the top-level section heading from which the menu descends can itself be a link to an interstitial page containing the same sub-section links as JS users see on the menu. Thus non-JS users have to click through an extra page to reach the subsection they want, but JS users get a slightly enhanced experience.
For an example, look at the top region of this page: the "Search" link has a downward arrow which uses JS to show an in-page quick-search dialog box, but the link itself still takes you to the full-featured search page if JS is disabled.
(If you want more examples of what I mean, post back here.)
FWIW earlier this year I worked on a poll application for some pop music awards. Due to a last-minute change (actually the whole project was last-minute, but this was literally just before going live) I accidentally broke an aspect of the navigation for non-JS users, making it impossible for them to submit their votes (mea culpa, mea maxima culpa ). Precisely one person reported the problem, and I then fixed it, but at the time when that person complained I think something like 4000 people had voted successfully. If we assume (for no good reason) that only one person in fifty with a problem bothers to complain, then that still suggests that an extremely small number of people have JS disabled. Still, they're all potential customers so they ought to be catered for
Crikey Nick, it's not even 3 in the morning yet.......
Leave a comment:
-
Originally posted by NickFitz View Post(mea culpa, mea maxima culpa ).
Leave a comment:
-
Originally posted by DaveB View PostAnyone with any sense wrt security has scripting turned off. The rest of the mindless herds of the internet have it turned on. DP's figures look about right.
(Netscape Navigator 4.x always crashed long before any security risk might present itself )Last edited by NickFitz; 28 August 2008, 16:48.
Leave a comment:
-
Originally posted by scooterscot View PostNow I'm assuming everyone enables their browsers to display java script animations and like but I'm now thinking perhaps not everyone does and thus it would not best to include such an app into my page.
Would you agree?
So if, for example, your animation is intended to reveal content that, if the animation does not run, will never be shown and will not be reachable by any other means, then you should reconsider your approach. It could be that you can cater for non-JS users merely by providing an explicit link to such content, which you then hide for JS users. A more sophisticated approach would have the content visible by default, then hidden by JS as the page loads, then finally shown via animation - a non-JS user would merely see the page before the content was hidden. (Hint: setting an additional class attribute value on the <body> element via JS, and a bit of CSS, are the way to do this without ugly flashing in and out of the content.)
For example, those drop-down menu bar navigation systems (which are the work of the devil) are inaccessible to non-JS users. However, the top-level section heading from which the menu descends can itself be a link to an interstitial page containing the same sub-section links as JS users see on the menu. Thus non-JS users have to click through an extra page to reach the subsection they want, but JS users get a slightly enhanced experience.
For an example, look at the top region of this page: the "Search" link has a downward arrow which uses JS to show an in-page quick-search dialog box, but the link itself still takes you to the full-featured search page if JS is disabled.
(If you want more examples of what I mean, post back here.)
FWIW earlier this year I worked on a poll application for some pop music awards. Due to a last-minute change (actually the whole project was last-minute, but this was literally just before going live) I accidentally broke an aspect of the navigation for non-JS users, making it impossible for them to submit their votes (mea culpa, mea maxima culpa ). Precisely one person reported the problem, and I then fixed it, but at the time when that person complained I think something like 4000 people had voted successfully. If we assume (for no good reason) that only one person in fifty with a problem bothers to complain, then that still suggests that an extremely small number of people have JS disabled. Still, they're all potential customers so they ought to be catered for
Leave a comment:
-
Originally posted by DimPrawn View PostMost modern websites (incl online banking) don't work very well with JS turned off. Now with web 2.0 technology (AJAX) they won't work at all.
Do you hide under the table as well?
Leave a comment:
-
Originally posted by DaveB View PostAnyone with any sense wrt security has scripting turned off. The rest of the mindless herds of the internet have it turned on. DP's figures look about right.
Do you hide under the table as well?
Leave a comment:
-
Originally posted by scooterscot View PostNow I'm assuming everyone enables their browsers to display java script animations and like but I'm now thinking perhaps not everyone does and thus it would not best to include such an app into my page.
Would you agree?
PS: apologies for not mentioning house prices or social prejudge etc etc
Leave a comment:
-
http://www.w3schools.com/browsers/browsers_stats.asp
Code:JavaScript Statistics There are no absolute trends about the use of JavaScript. Some users have scripting turned off. Some browsers don't support scripting: Date JavaScript On JavaScript Off January 2008 95% 5% January 2007 94% 6% January 2006 90% 10% January 2005 89% 11% January 2004 92% 8% January 2003 89% 11% January 2002 88% 12% January 2001 81% 19% January 2000 80% 20%
Leave a comment:
-
Silly question perhaps - java script
Now I'm assuming everyone enables their browsers to display java script animations and like but I'm now thinking perhaps not everyone does and thus it would not best to include such an app into my page.
Would you agree?
PS: apologies for not mentioning house prices or social prejudge etc etcTags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: