PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #4714

Need noscript version for hierselect

Details

Request #4714Need noscript version for hierselect
Submitted2005-06-30 07:38 UTC
Fromdarren at dcook dot org
StatusWont fix
PackageHTML_QuickForm
PHP Version4.3.11
OSN/A
Roadmaps(Not assigned)

Comments

[2005-06-30 07:38 UTC] darren at dcook dot org

Description:
------------
We want to use hierselect, but we also want to support people with javascript disabled. I think this is possible with two additions:

1. The final select in the hierselect should be wrapped in a document.write, rather than output as raw HTML. This would ensure that people with javascript disabled would not see anything.

2. Allow the hierselect to accept another array which is the "one, long list" array. Output this in a noscript block.

Note: as an interim solution, if just addition 1 above was done then I can do the noscript block manually.

In addition, a bandwidth-reducing idea: have some (quickform-wide) way of specifying if we know if the users browser allows javascript or not (i.e. Yes, No, Don't-Know). When Yes only show the hierselect boxes. When No only show the one long version. When Don't-Know then show both.