progressive-enhancement

Make jQuery AJAX have a non-javascript (non-ajax) fallback?

℡╲_俬逩灬. 提交于 2019-12-04 14:26:03
问题 I've gotten a fair amount of work done on my latest project, but I've realized there's a bit of a problem: If you don't have a Javascript-enabled browser, you can't submit any forms because every form uses AJAX to submit it. My question to you all: How can I implement some sort of "fallback" so that if they don't have Javascript enabled, they can still submit the form. Currently I have a banner along the header that says "For the optimal (and by "optimal," we mean "actually working")

Detect when JavaScript is disabled in ASP.NET

 ̄綄美尐妖づ 提交于 2019-12-04 01:26:17
In the Render method of an ASP.NET web-control, I need to alter the output of the Html based on whether JavaScript is enabled or disabled on the clients browser, Does anyone know the right incantation to figure that out? The problem with using script to check whether javascript is enabled is that you only find that out after the script hasn't run. Some solutions try the opposite - they use javascript to set a value and then supply Javascript enabled controls if that value is later detected. However, this fails with javascript-sometimes-enabled tools like the Firefox NoScript plugin. A more

Is progressive enhancement a current issue anymore?

痴心易碎 提交于 2019-12-03 14:55:05
There are couple of things I hear in defense of progressive enhancement. Javascript is off or not available. According to W3School's Javascript statistics , 95% had Javascript enabled January 2008 (2.5 years ago). The trend, based on those stats, seems to be that Javascript enabled browsers are on the rise. Heavy AJAX adoption has probably pushed users to enable even faster. To support text-only or accessibility doesn't make a lot of sense from the business perspective since they probably account for less than <1% of the traffic. Mobile browsers won't work. I would either way create a mobile

How do I build a gracefully-degrading HTML5 Range?

旧巷老猫 提交于 2019-12-03 13:36:31
I'd like to use the <input type='range' /> from HTML5 for browsers that support it and degrade to a <select /> if not. I'm using Ruby-on-Rails, so failing all else, I could do something like this on the server-side. I would prefer, though, to have something more inline with the idea of progressive enhancement done via Javascript. Bonus points if it's JQuery. Ben Boyle Check out Modernizr , it will tell you if range is supported. I believe the technique is to create a range input and check it's type — if it is still "range" then it is supported. Otherwise it should report "text" which is the

Designing a website for both javascript script support and not support

允我心安 提交于 2019-12-03 09:54:08
Okay i know that it's important for your website to work fine with javascript disabled. In my opinion one way to start thinking about how to design such websites is to detect javascript at the homepage and if it's not enabled redirect to another version of website that does not javascript code and works with pure html (like gmail) Another method that i have in mind is that for example think of a X (close button) on a dialog box on a webpage. What if pressing the X without any javascript interference lead to sending a request to the server and in the server side we hide that dialog next time we

Make jQuery AJAX have a non-javascript (non-ajax) fallback?

元气小坏坏 提交于 2019-12-03 08:32:59
I've gotten a fair amount of work done on my latest project, but I've realized there's a bit of a problem: If you don't have a Javascript-enabled browser, you can't submit any forms because every form uses AJAX to submit it. My question to you all: How can I implement some sort of "fallback" so that if they don't have Javascript enabled, they can still submit the form. Currently I have a banner along the header that says "For the optimal (and by "optimal," we mean "actually working") experience, please enable Javascript in your browser." but that seems like less than the optimal solution.

CSS3 Transition Polyfill [closed]

有些话、适合烂在心里 提交于 2019-11-30 02:51:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Alright, so most of you will be familiar with CSS3 Transitions, I prefer it above jQuery animations as it has the simplicity of CSS. My only regret is that it doesn't work in IE < 9( As always ) as well as Firefox < 4, Safari < 4, etc. I do not mean writing separate animations in JavaScript just for IE. But I

What is the difference between Progressive Enhancement and Graceful Degradation?

五迷三道 提交于 2019-11-28 15:42:44
I'm confused on what the difference is between Progressive Enhancement and Graceful Degradation . To me they seem like the same thing. Can you please explain to me the differences between the two and in which situation I would use one over the other? Alex Mcp They ARE almost exactly the same thing, but they differ in context. There is a class of browsers called "A Grade Browsers". These are your typical audience members that (probably) make up the majority of your visitors. You'll start with a baseline of these users. Call this best modern practices . If you want to enhance the experience for

Is it ok to manipulate dom before ready state?

孤街浪徒 提交于 2019-11-27 21:34:10
This is generally how I manage progressive enhancement whilst keep the experience clean, but how safe is it? is there potential for a race condition and this not working? Imagine the simple abstract scenario, you want to display something differently if you have javascript support.. this is generally what I will end up doing: <div id="test">original</div> <script type="text/javascript"> var t = document.getElementById('test'); t.innerHTML = 'changed'; </script> Many may claim you should use a framework and wait for a domready event, and do changes there.. however there is a significant delay

How to create Progressive web app apk/any type of file that can be distributed in a enterprise devices

北战南征 提交于 2019-11-27 15:20:22
问题 Understandably, Progressive web apps(PWA) are added to home screen after the user visits the web app in supported browser(chrome for now I guess) and clicks on "Add to Home Screen". This works fine for publicly available PWAs. Thinking of Enterprise android applications, which needs to be installed to thousands of devices via some app push tools like Airwatch, its practically not possible to have someone open the browser, put the URL and then add to home screen in all thousands of devices. Is