pankil thakkar
pankil thakkar

Reputation: 411

Alternative if javascript is disabled in browser

Is there any alternative way to call javascript when javascript is disabled in your browser?

Means if i am using ajax and also jquery validation which are must for the further process but my javascript is disabled in browser. So what should i do ? How to validate and get the values of the ajax call ?

Upvotes: 0

Views: 1778

Answers (3)

Luca Rainone
Luca Rainone

Reputation: 16468

If javascript is disabled you cannot do any javascript controller (of course).

However some HTML5 attribute can force the browser to do some basic control. Such type="email" or type="url".

These validation, in some recent browser, are available with js disabled too.

Upvotes: 1

Quentin
Quentin

Reputation: 943591

Is there any alternative way to call javascript when javascript is disabled in your browser?

No. Disabled is disabled.

Means if i am using ajax and also jquery validation which are must for the further process but my javascript is disabled in browser. So what should i do ? How to validate and get the values of the ajax call ?

Perform the validation server side.

Present the results of the data processing by generating a new HTML document on the server.

Follow the principles of Progressive Enhancement and Unobtrusive JavaScript

Upvotes: 2

Denys Séguret
Denys Séguret

Reputation: 382160

No, if javascript is disabled, then you can't enable it or use it without the help of the user.

But you should consider that it's a very rare occurrence and that users deciding to disable javascript support the choice of their decision, there is nothing you can do.

Upvotes: 4

Related Questions