Closed (works as designed)
Project:
SpamSpan filter
Version:
6.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 May 2009 at 01:54 UTC
Updated:
2 Nov 2014 at 00:08 UTC
Jump to comment: Most recent
Comments
Comment #1
peterx commentedYou could add a message but you have to detect the lack of Javascript and there are other modules designed for that.
You cannot rely on browser information before you generate the page because the "agent" string is often fake for various reasons. The only reliable way to detect Javascript is to present an intermediate page then redirect with the redirection different based on the use of Javascript. Google hates redirects of that nature and will drop your site right down the list.
You are then left with the option of always displaying the Javascript message and using Javascript to remove the message. People will see the message during the whole page flash before Javascript changes the page.
Google and other bots will see the version without Javascript. Your entries in Google will show the Javascript message instead of the information you want.
You need a different module, one attached to the first page view, to test for Javascript and to set something in the visitor's session. Drupal 7's Ajax code does something like that. The code adds
nojsto the end of the URL in a link then Javascript changesnojstoajax.A test of that scope is beyond this module because this module does not run on every page.