Yii 1.1: noscript

create message if Javascript is disabled
7 followers

This widget create a discreet message if javascript isn't enabled in the browser.

Requirements

Yii 1.1.7 or above...

Usage

  • extract the widget file under .../protected/extensions
  • put in a view (.../protected/views/layouts/main) a code blocks like the following after the body tag...

Sample

....
<body>
<?php $this->beginWidget('ext.noscript.XNoScriptMessage'); ?>
Dear user, the application need javascript support!
Please enable Javascript in your browser!
<?php $this->endWidget(); ?>
 
<div class="container" id="page">
....

Change log

Version 1.0

  • initial release

Total 4 comments

#12789 report it
Trejder at 2013/04/12 04:08am
Down votes again

If we have such simple extension, list this one to just write Lorem Ipsum text, then why we can't have something like noscript?

#6625 report it
willowdan at 2012/01/23 01:26am
Thanks ..

Thanks for this simple yet awesome extension ...

#5355 report it
volkmar at 2011/10/06 01:15pm
down votes

I dont unterstand the down votes. The extension was inspired by Yaml Css Framework.

#5353 report it
Rodrigo Coelho at 2011/10/06 08:41am
Why the down votes?

Please share your thoughts and help improve the extension.

Update: made this suggestion.

Leave a comment

Please to leave your comment.

Create extension