Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Create a page to instruct people how to enable javascript

Not everyone who browses the internet has JavaScript enabled - some because they have their browsers set up incorrectly other because they have actively decided to turn it off to protect themselves from hackers.

Quite a lot of extra modules use jQuery, MooTools or plain old JavaScript to power additional functionality within the store. Obviously, it is best to degrade seamlessly from the JavaScript version back to plain old HTML.

However, in the case of the users who have accidentally disabled you may find it useful to gently prompt them to re-enable it. Unfortunately, each browser has a different set of instructions on how do to this - Internet Explorers are particularly complicated.


Instructions

Anyway - here is how to do it:

Open includes/warnings.php and at the bottom after the '?>'

Add:

<noscript>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td class="messageStackError"><a href="nojavascript.htm" target="_blank" class="nojavascript">We have detected that you currently have Javascript disabled.  In order to use this site you must re-enable Javascript.  If you are unsure how to do this please click here.</a></td>
  </tr>
</table>
</noscript>

You will then need to create a nojavascript.htm page in the root of your directory structure to display when the users click on the link.

There is an example below but you may also want to look at Custom Error Messages for inspiration

Demos and Examples

  • Bookmark at
  • Bookmark "Create a page to instruct people how to enable javascript" at Digg
  • Bookmark "Create a page to instruct people how to enable javascript" at Furl
  • Bookmark "Create a page to instruct people how to enable javascript" at Reddit
  • Bookmark "Create a page to instruct people how to enable javascript" at Google
  • Bookmark "Create a page to instruct people how to enable javascript" at StumbleUpon
  • Bookmark "Create a page to instruct people how to enable javascript" at Technorati
  • Bookmark "Create a page to instruct people how to enable javascript" at Facebook
  • Bookmark "Create a page to instruct people how to enable javascript" at Twitter
  • Bookmark "Create a page to instruct people how to enable javascript" at Slashdot
enable_javascript.txt ยท Last modified: 2009/10/26 08:11 (external edit)
You are here: startenable_javascript
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0