Go Back   Pligg Forum > Pligg Development > Core Development
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2007, 06:46 AM
Simon Simon is offline
Innovator
 
Join Date: Mar 2006
Posts: 581
Downloads: 22
Uploads: 1
Thanks: 14
Thanked 126 Times in 61 Posts
Non-javascript support

I came across a user today who was trying to access my pligg site. They told me they couldn't see comments, or register. After checking, it appears that both these functions require javascript to be visible.

This wouldn't normally be a problem, but quite a number of users I am targetting use the FF extension noscript. Not all are adept at configuring it either. I think it might be prudent to make sure events like registration and comment viewing (can't think of any others off the top of my head) can be accessed without javascript support.

I will be going over my site soon to see where this can be done without compromising usability etc. I know that the jquery library allows detection of javascript support, which could be used as a conditional, I will see if the scriptaculous library can do the same.
__________________

Reply With Quote
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #2 (permalink)  
Old 05-29-2007, 10:46 AM
Simon Simon is offline
Innovator
 
Join Date: Mar 2006
Posts: 581
Downloads: 22
Uploads: 1
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
  #3 (permalink)  
Old 05-29-2007, 11:00 AM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
I never thought about the javascript limitations for people who have it disabled.

Simon have you made the above changes on your site?

Geoserv
Reply With Quote
  #4 (permalink)  
Old 05-29-2007, 12:03 PM
Simon Simon is offline
Innovator
 
Join Date: Mar 2006
Posts: 581
Downloads: 22
Uploads: 1
Thanks: 14
Thanked 126 Times in 61 Posts
I made the changes on hyiperway.com about an hour ago.
__________________

Reply With Quote
  #5 (permalink)  
Old 05-29-2007, 01:29 PM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
No side effects that would alter the operation of the site?

If we all implemented your suggestions above, would we see any change in our site?

Geoserv.
Reply With Quote
  #6 (permalink)  
Old 05-29-2007, 01:35 PM
Simon Simon is offline
Innovator
 
Join Date: Mar 2006
Posts: 581
Downloads: 22
Uploads: 1
Thanks: 14
Thanked 126 Times in 61 Posts
Not that I can think of. Replacing # with javascript:// just means that the page won't get reloaded when a non-js user clicks on a tab. The registration changes shouldn't make any difference either, as errors will still be displayed and stop the user continuing. The extra style="display:none;" is unnecessary, so removing it from the default tab content won't cause any harm, but will let non-js users see comments and the login sidebar tab.

The alert message is good for making sure user know they need js to properly utilise the site.
__________________

Reply With Quote
  #7 (permalink)  
Old 05-29-2007, 10:23 PM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
I will implement this tomorrow.

Thanks,
Geoserv.
Reply With Quote
  #8 (permalink)  
Old 05-29-2007, 11:13 PM
abcdefgary abcdefgary is offline
Constant Pligger
 
Join Date: Feb 2007
Posts: 236
Downloads: 5
Uploads: 0
Thanks: 20
Thanked 29 Times in 15 Posts
I don't know if this works, but you could have...

<noscript>Your browser does not support javascript, etc.</noscript>

or something in the body to warn the user to turn it on or something.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Test build 153 has sub category support? rohplgan03 General Help 1 07-29-2006 09:55 AM
Having a JavaScript problem ucopious General Help 0 07-24-2006 05:16 PM
coComment support gragland Suggestions 0 07-14-2006 10:06 PM
Tricky Javascript Error thefirelane General Help 4 03-18-2006 02:30 AM


LinkBacks Enabled by vBSEO 3.0.0