Open cliffy94 opened 11 years ago
Well, thank you, we haven't thought of this yet.
Guys, how are we handling this?
There's no way to check for js in PHP as it's server side, but if some client-side stuff could define a PHP variable (Like an automatic post request to the homepage, or we could even have a button hidden with js that sets the variable), then PHP could do that, assuming I have some js-less HTML.
We'd need to restructure the HTML. E.g. have a form element and submit button, then hide that button if javascript is enabled
I wouldn't have the button hidden by js because then it will flash briefly on page load. Just have it in noscript On 12 Aug 2013 12:44, "bleko" notifications@github.com wrote:
We'd need to restructure the HTML. E.g. have a form element and submit button, then hide that button if javascript is enabled
— Reply to this email directly or view it on GitHubhttps://github.com/edlongman/thescoop/issues/22#issuecomment-22487651 .
I meant using different stylesheets if javascript was enabled or disabled
Yes that would fix it in a nicer way! On 12 Aug 2013 18:26, "bleko" notifications@github.com wrote:
I meant using different stylesheets if javascript was enabled or disabled
— Reply to this email directly or view it on GitHubhttps://github.com/edlongman/thescoop/issues/22#issuecomment-22510040 .
The site -http://thescoop.io/ - Does not function with Scripting/java-script disabled in browser. Please detect this and fall back to more traditional HTML to allow submission/post.