So this is in regards to a view displaying as a jcarousel lite block. I've got it themed/styled as a thin scroller to show rss headlines only - it scrolls horizontally across the width of the page. There are loads of rss feed headlines in it, and it displays 3 at a time with auto-scroll and the prev/next buttons disabled (all by hacking the code - would be nice if those were configurable while setting up the view)
Anyway, if javascript is disabled in the browser, it instead prints a regular list of all the loads of items. And, even if javascript is enabled, half the time it does that for a split second on page load anyway before quickly shifting to the expected horizontal banner scroller.

Question: is there a way in drupal to tell a block to not display itself if javascript is not enabled? I found the javascript code (for d6 at least) to use drupal.jsEnabled - which apparently is going away in d7 - but the question is, I'd like to be able to tell if javascript is enabled using php in the block setup form.

Thanks in advance

Comments

owahab’s picture

Status: Active » Fixed

Let's split this long issue.
1.

There are loads of rss feed headlines in it, and it displays 3 at a time with auto-scroll and the prev/next buttons disabled (all by hacking the code - would be nice if those were configurable while setting up the view)

This will be fixed in RC1.

2.

Anyway, if javascript is disabled in the browser, it instead prints a regular list of all the loads of items. And, even if javascript is enabled, half the time it does that for a split second on page load anyway before quickly shifting to the expected horizontal banner scroller.

Perhaps this could help you out: http://www.gmarwaha.com/jquery/jcarousellite/#knownIssues
3.

Question: is there a way in drupal to tell a block to not display itself if javascript is not enabled? I found the javascript code (for d6 at least) to use drupal.jsEnabled - which apparently is going away in d7 - but the question is, I'd like to be able to tell if javascript is enabled using php in the block setup form.

This would be a very good enhancement. Why don't you issue a feature request for this so we can get more votes for it?

caver456’s picture

Thanks for the reply-
1) glad to hear it - thanks for enabling that!
2) will give it a shot; I think you're referring to the css section where you give it a left of -5000, basically so that the flicker occurs well off the screen where it's not visible
3) will do... and I'll post the node# here afterwards.

caver456’s picture

support request added at http://drupal.org/node/651606
"disable block display if javascript is disabled"

owahab’s picture

Thank you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.