View Single Post
  #2 (permalink)  
Old 05-29-2007, 11:46 AM
Simon Simon is offline
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
Having been through my site already, here are a few tips:

Code:
<div class="javascript1" align="center" style="padding-bottom:20px;"><font color="red"><b>Javascript Not Enabled</b> - javascript required to access advanced features!</font></div>
<script type="text/javascript">$$('div .javascript1').each(Element.hide);</script>
This code will alert users that they do not have javascript enabled, providing you are using the scriptaculous module.

A few other things I found included:
  • The href="#" setting for tabs - which should be changed to href="javascript://".
  • Some tabbed content had the attribute display:none; for ALL content. The default tab content should not have this attribute.
  • Registration doesn't work if javascript support is disabled. To rectify this, the "create user" button in register_step_1.tpl should have the disabled="true" attribute removed.
  • The register_error.tpl uses a javascript history attribute to send users back to the register page. It is better to use a form to send users back to the register.php page.
So far I have found that voting and the live page have no real javascript alternative, hence the need for the alert message above.
__________________

Reply With Quote