graceful-degradation

Designing a website for both javascript script support and not support

二次信任 提交于 2019-12-09 07:05:05
问题 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

Ajax fallback when Javascript is disabled

浪子不回头ぞ 提交于 2019-12-08 09:03:31
问题 Problem: i) In a JSF2 application, I want to create a page with a tab control, where, when the user clicks on a tab, the contents for the panel below is loaded from an xhtml file in the server through an ajax call. ii) I want this to support graceful degradation (when Javascript is disabled), so that upon clicking the tab, an HTTP request is fired, and a new page is loaded...or the other way round, through progressive enhancement. Partial solutions: i) I guess I can accomplish this through

How to build Graceful Degradation AJAX web page?

此生再无相见时 提交于 2019-12-08 00:06:49
问题 I want to build web page with "Graceful Degradation". That is, the web page functions even javascript is disabled. Now I have to make design decision on the format of AJAX response. If javascript is disabled, each HTTP request to server will generate HTML as response. The browser refreshes with the returned HTML. That's fine. If javascript is enabled, each AJAX HTTP request to server will generate ... well, JSON or HTML. If it is HTML, it is easy to implement. Just have javascript to replace

How important do you think Progressive Enhancement is? [closed]

泄露秘密 提交于 2019-12-06 04:55:19
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Progressive Enhancement is a web development methodology that not only allows greater portability and accessibility but in my opinion,

Is graceful degradation in the absence of JavaScript still useful?

别说谁变了你拦得住时间么 提交于 2019-12-05 18:19:27
问题 When even mobile browsers have JavaScript, is it really necessary to consider potential script-free users? 回答1: Yes. Your web pages aren't just consumed by people: they're consumed by search engines, and crawlers, and screenscrapers. Most of those automatic tools don't support Javascript, and essentially none are going to generate UI events or look at deeply nested AJAX data. You want to have a simple static HTML fallback, if nothing else then so that your web pages are well indexed by the

Detect if computer can support 3D Transforms properly

橙三吉。 提交于 2019-12-04 06:09:43
问题 When I detect webkit, I add an additionnal stylesheet using 3D Transforms properties. Although it is working fine on many different computers (All on the same chrome version) , some don't render the animation properly. Those are older computers with cheaper Graphic Card. (I guess that is what is causing the problem.) Is there a better way to detect if a computer can handle Css 3D Transforms than rely on the browser detection? 回答1: Use Modernizr and its csstransforms3d class name. More on

Detecting pinch in Android

杀马特。学长 韩版系。学妹 提交于 2019-12-04 01:31:20
I would like to handle pinch events in my Android application to zoom in and out. I believe Android 2.0 has multi-touch functionality, and heard that Android 1.6 might or might not support it depending of the device. What's the best way to detect pinch events, while degrading gracefully for devices that don't support it? I'm targeting Android 1.5 upwards. Damian A great article by Ed Burnette (Hello Android Author) on multi touch (including pinch zoom) can be found here: http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747 Here's an article on the Android developer blog

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

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

Python: Pickling a dict with some unpicklable items

痞子三分冷 提交于 2019-11-29 03:52:26
I have an object gui_project which has an attribute .namespace , which is a namespace dict. (i.e. a dict from strings to objects.) (This is used in an IDE-like program to let the user define his own object in a Python shell.) I want to pickle this gui_project , along with the namespace. Problem is, some objects in the namespace (i.e. values of the .namespace dict) are not picklable objects. For example, some of them refer to wxPython widgets. I'd like to filter out the unpicklable objects, that is, exclude them from the pickled version. How can I do this? (One thing I tried is to go one by one