Questions tagged [graceful-degradation]

Graceful-Degradation is the term used to describe the encapsulation of API specific calls such that your application can support the widest range of users. It's often used to provide the newest features to up-to-date devices while maintaining backward compatibility for older devices.

Graceful-Degradation is the term used to describe the encapsulation of API specific calls such that your application can support the widest range of users. It's often used to provide the newest features to up-to-date devices while maintaining backward compatibility for older devices.

118 questions
2
votes
0 answers

How can one degrade an unsupported XMLHttpRequest method gracefully to one that is supported (e.g. POST)?

According to jQuery's documentation $.ajax() supports "other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not [necessarily] supported by all browsers." [1] I'm wondering if there is a way to check if a browser…
Sean Quinn
  • 2,131
  • 1
  • 18
  • 48
2
votes
1 answer

CSS degradation from Javascript not working properly

I have a typical news ticker set on a website and am trying to degrade it for people not using Javascript (do these people really exist, I wonder?). Anyway, I'm placing inside my tags a simple CSS fix-up of it all but…
QuestionerNo27
  • 610
  • 6
  • 14
  • 30
2
votes
2 answers

graceful degradation for globbing on terminal

Whenever glob pattern match fails, it stops the whole job. For instance, $ mv *.jpg *.png folder1 && blahblah mv: cannot stat `*.jpg': No such file or directory *.png isn't moved to folder1 and blahblah is not run. And the script below works only…
Yoo
  • 17,526
  • 6
  • 41
  • 47
2
votes
3 answers

Determine hyperlink to use based on browser type in HTML

I have a website which I have embedded lightview to bring up an iframe which has the Google Voice badge in it. This badge is flash based, so cannot be seen in iOS. In order to get a phone number to dial in iOS, it has to have a different…
2
votes
6 answers

Designing a website for both javascript script support and not support

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…
EBAG
  • 21,625
  • 14
  • 59
  • 93
2
votes
1 answer

Should you use a hashbang on AJAX content sites, or just use normal URLs?

So I am creating just a fairly normal content based website that is going to load new pages/content in via AJAX for a smoother user experience and some simple transitions. I see a ton of people using a hashbang for similar implementations. My…
gokujou
  • 1,482
  • 3
  • 15
  • 27
2
votes
1 answer

Bypass javascript errors for graceful degradation

I have a javascript function which is called onclick of a button. It is working fine in chrome and firefox. It basically places some validation checks, so that in case of incomplete information form is not submitted to the server. My question is…
user517491
2
votes
1 answer

What is the proper method to add tests to modernizr?

The test already exists in the github repo, but when I try to include it on my page I get an error, so I'm not sure how I need to include it in my document. In my html tag I link the modernizr script and then link to the test I am…
Damon
  • 10,493
  • 16
  • 86
  • 144
1
vote
0 answers

Framework for detecting blocked Javascript (and other) resources

I use NoScript to selectively allow what Javascript to run. Unfortunately most sites pull in Javascript from all kinds of places, so this is not an on/off proposition, but can result in various degrees of brokenness. Is there a good way for site…
Thilo
  • 257,207
  • 101
  • 511
  • 656
1
vote
1 answer

Ajax fallback when Javascript is disabled

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…
Nilesh
  • 1,222
  • 1
  • 11
  • 23
1
vote
0 answers

How do you gracefully shutdown in Nuxt3

I'm trying to disconnect from the database when the server is shutting down in Nuxt3. This used to work in Nuxt 2 but it doesn't work anymore in Nuxt3. Writing the code in the "ready" hook in nuxt.config.ts doesn't help either. Also, I tried a…
Victor
  • 71
  • 7
1
vote
1 answer

jquery graceful degradation ie5.5

What would be the best way of disabling jquery on an unsupported browser eg IE5.5. I just want to turn the errors off; I'm not trying to get it to work 100% properly or anything just to stop throwing errors; that's if it's not that big of a deal. If…
1
vote
1 answer

Is this trick safe to do in all browsers?

Is this safe to do in all browsers? It's a way to simply redirect users to a different place when js is off.
bigblind
  • 12,539
  • 14
  • 68
  • 123
1
vote
3 answers

javascript: Does progressive enhancement means no json with ajax?

I read this article here that talks about progressive enhancement for javascript and the author mentioned: First, build an old-fashioned website that uses hyperlinks and forms to pass information to the server. The server returns whole new…
goh
  • 27,631
  • 28
  • 89
  • 151
1
vote
2 answers

Validator in

The following .NET 3.5 code, placed in an aspx file, will trigger a JavaScript error when the page is loaded (for users who have JavaScript enabled):