edlongman / thescoop

The fastest way to catch up on recent news
thescoop.io
Apache License 2.0
6 stars 0 forks source link

Does not function with Scripting/java-script disabled in browser #22

Open cliffy94 opened 11 years ago

cliffy94 commented 11 years ago

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.

samuelhoenle commented 11 years ago

Well, thank you, we haven't thought of this yet.

Guys, how are we handling this?

Taiiwo commented 11 years ago

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.

jake-patt commented 11 years ago

We'd need to restructure the HTML. E.g. have a form element and submit button, then hide that button if javascript is enabled

edlongman commented 11 years ago

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 .

jake-patt commented 11 years ago

I meant using different stylesheets if javascript was enabled or disabled

edlongman commented 11 years ago

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 .