I have been working recently on making Netquery fully compliant with current CSS and XHTML standards and I've found that the W3C XHTML Strict validator seems to dislike the simultaneous display of multiple forms. More precisely, it objects to multiple instances anywhere on a single page of input fields with the same ID, even when they're in separate forms.
In the circumstances, there appears to be three options. The validator would be satified if we simply elimate those input field ID attributes and rely on input field names alone (deprecated). We could completely revise the PHP script handling of forms posting to accomodate multiple unique IDs for essentially the same input values (e.g., authid). Or we could revise Netquery's user interface so that it displays only one input form at a time rather than displaying all query types at once on the same page.
I am hesitant about the first option. Relying on deprecated attributes never seems like a wise approach and is quite likely to require even more work in the longer term. To me, the second option seems more like a kludge than a real solution and it doesn't appeal to my "neatness" fetish. So, although the last option probably involves the most work in the short term, it may be the best direction to take for a number of reasons -- not least being a simplified user interface, at least in its outward appearance.
I am currently trying out the third option concept in the standalone edition only which can be seen on my test site at http://www.virtech.org/netquery/ That new XHTML interface approach can be compared to the existing (v2.1) Postnuke module multiform interface at http://postnuke.virtech.org/index.php?module=Netquery
I'd be grateful for any and all opinions and comments that anyone might care to offer. If users (actual and potential) think it's worth pursuing, I'll then take a crack at similar updates for the CMS editions, including the module for Postnuke, of course.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Netquery XHTML Interface - Request for Comments
-
- Rank: Registered User
- Registered: May 08, 2003
- Last visit: Jan 27, 2010
- Posts: 41
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Richard,
Assuming by id you mean the id attribute then yes the validator will object to this as id has to be unique across the entire page. You say that the name field is deprecated. This is true only for some tags. The name attribute of form elements (text fields etc. is ok) but for forms, links, images etc. it is deprecated.
So removing the id fields on the form elelments wouldn't be a problem for the reason you state. However you do need ID's on the visible controls so that you can match the label to them (label for- control id) so removing them isn't an option - this is for accessibility reasons rather than standards any compliance.
My solution would be to create a static counter within your form display function. Increment each counter on the execution of the form display function. Then add the counter to each form control id and label for attribute (.e.g ). The control names stay the same as this isn't as problem.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Registered User
- Registered: May 08, 2003
- Last visit: Jan 27, 2010
- Posts: 41
Thanks, Mark. That reference on element name/id usage is more specific than the one I read and your suggestion is much appreciated. I'm sure it will be put to good use regardles of whether the Netquery interface is revised. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Richard,
No problem - it's often easier to go direct to the specs rather than another site's interpretation of them.
-Mark
--
Visit My homepage and Zikula themes.
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
