I’m using the <noscript> tags in main.php layout file inside the body to show a msg if javascript is disabled but they are not working. Neither in firefox nor in chrome. They simply dont show up in the page source. What am i doing wrong? Spent the last 2 hours trying to solve this!
I was using this before. And I have tried also what Yiingeneur has posted too but noscript tags are not working in chrome aswell as in firefox.
<body>
<noscript>
<style type="text/css">
.mainDiv {display:none;}
</style>
<div class="noscriptmsg">
hBuddy requires javascript in order to function properly. Please enable javascript and refresh the page.
</div>
</noscript>
Fahd, as I suggested in the PM, I think it’s not a Yii issue but the HTML Problem. So please post the entire HTML output, then I can help. I just tested my solution in Chrome and FF8 and it works as expected. Maybe your Javascript is still turned on in these browsers? =)
what do you mean by nothing there? if there’s nothing, it means the problem is elsewhere and not a noscript-tag problem. how do you detect that it is not working?