Home » HTML » HTML_QuickForm » Bug #4714
Need noscript version for hierselect
Details
| Request #4714 | Need noscript version for hierselect |
|---|---|
| Submitted | 2005-06-30 07:38 UTC |
| From | darren at dcook dot org |
| Status | Wont fix |
| Package | HTML_QuickForm |
| PHP Version | 4.3.11 |
| OS | N/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.