Форумы / Cotonti / Development / Using Ajax and Jquery (Question)

Trustmaster
#23274 28.02.2010 21:07
Yes, it's a pain in ass for us coders, but many users and authorities claim that a "pure" site should be all accessible without JS as well.

In Cotonti's core we must provide the same functions to work in all the available modes:
  • without JavaScript at all (no javascript works in browser even if it is present)
  • with JavaScript but without jQuery and AJAX ($cfg['jquery'] == false && $cfg['turn_ajax'] == false)
  • with jQuery without AJAX ($cfg['jquery'] == true && $cfg['turn_ajax'] == false)
  • with jQuery and AJAX($cfg['jquery'] == true && $cfg['turn_ajax'] == true)
Currently we provide everything except for the 2nd mode, because we rely on jQuery in our JS coding.

As for non-core code, I usually decide it with a website owner. Usually we agree that JS is a must for a website visitor and jQuery is OK. So, if you make a plugin that relies on JS and jQuery, you can just tell it in plugin requirements. But if you make something that is going to be used by noscript users, then you'll have to provide "the olschool" way for them too.
May the Source be with you!