Closed (fixed)
Project:
Drupal core
Version:
6.14
Component:
block.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 21:51 UTC
Updated:
5 Apr 2010 at 20:20 UTC
Is there a way to disable display of a certain block if the browser's javascript is disabled? For some blocks (from modules) there might not be any good non-javascript display, i.e. non-javascript might really interfere with the rest of the displayed page. If the core had a way (maybe a checkbox in the modify-block pages) to disable block display when javascript is disabled, that would be a huge help. I read that drupal.jsEnabled is going away - but, even if it were still there, that's in javascript itself, right? If there were a variable in php-land then we could use it in the currently existing block modify pages as a flag to display or not display.
Thanks
Comments
Comment #1
mr.baileysOne option could be setting the block's CSS to hide the block by default, and then use javascript to show it (should be just a one-liner).
In any case, you'll get more help in the forums or IRC...