Possible duplicate:How to determine if JavaScript is disabled?
My first web application relies mostly on Javascript and an AJAX application.
Besides my login page, most pages rely on Javascript and Ajax when sending data to the server. I thought about this, if the user disables their javascript, then my application does not behave accordingly.
I used this code on my login page
<NOSCRIPT> Javascript is required to run this pages. Please turn it on or ask help from techsupport if you dont know how to enable it </NOSCRIPT>
Although I think this is not relevant, I used Spring MVC 2.5 and Jquery for the sake of information for everyone.
Any thoughts on how others can handle this scenario?
, JavaScript. - , 10 .
<noscript> , JavaScript. , , ... JavaScript , JavaScript ( " jquery " )?
<noscript>
, , JavaScript (jQuery), . , , JavaScript.
, -
<noscript> <meta http-equiv="refresh" content="url=/?nojs=true"> </noscript>
html, , - .
: (PHP )
if(isset($_GET['nojs']) && !isset($_SESSION['no_script'])) { $_SESSION['no_script'] = true; //Or cookie }
, , session/cookie, JavaScript.
javascript, , , . js. , , .
, javascript, , .
jquery, , .
, , , javascript. $('#login').attr('disabled',false);. javascript , .
$('#login').attr('disabled',false);
div, , css, , JS .
, . , firebug, , 1,2,3. , , .ajax() cookie. . - , .
.ajax()
5! If web applications are heavily dependent on JavaScript, my suggestion is to include a tag <noscript>. You can then tell users how to enable it: www.enable-javascript.com
Source: https://habr.com/ru/post/1766713/More articles:ASP.NET Intermittent lag before Application_BeginRequest () - iis-7https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1766709/where-to-find-emf-artifact-in-maven-repository&usg=ALkJrhhSTVRwHP7NEt8CKOwaN7aqbuDVqgCreate TFS 2010 branch from checked items? - branchΠΠ½Π΅ Π½ΡΠΆΠ½Π° ΡΠΈΡΡΠ΅ΠΌΠ° ΡΠ²Π΅Π΄ΠΎΠΌΠ»Π΅Π½ΠΈΠΉ Π² Π²Π΅Π±-ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ - c#ΡΠ°Π±ΠΎΡΠ°Π΅Ρ Π²ΠΈΠ΄Π΅ΠΎΠΌΠ°Π³Π½ΠΈΡΠΎΡΠΎΠ½ Π² ΡΠΎΠ½ΠΎΠ²ΠΎΠΌ ΡΠ΅ΠΆΠΈΠΌΠ΅ Π² iOS 4 iphone? - iphoneUsing Android AccountManager to get authtoken for gdata - androidUser Routing Within the Area - asp.net-mvc-routingΠΡΠΎΠ³ΡΠ°ΠΌΠΌΠ½ΠΎ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡ Π½Π°ΡΡΡΠΎΠΉΠΊΠΈ ΠΏΠΈΡΠ°Π½ΠΈΡ Windows - c#How to implement a small static map display as a list icon? - androidAll Articles