You are right, it is too complex.  Almost anything that you try to do that 
requires navigating the BOM tree is too complex.  This is why XForms in 
conjunction with XHTML (and CGI-BIN) looks so promising!  If you are concerned 
about having to parse XML output, don't be.  You can still output 
multipart/form data or url-encoded data with XForms Basic.

On another note,  I personally don't care for "in your face" alerts for errors. 
 I much prefer providing error messaging on the page itself but that's just my 
preference.  I currently use innerHTML to accomplish this.

-----Original Message-----
From:   web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]  On 
Behalf Of Brad Stone
Sent:   Friday, October 03, 2003 6:20 AM
To:     Web Enabling the AS400 / iSeries
Subject:        Re: [WEB400] Xforms

Let me see if I understand...

Are you saying in a JavaScript alert you want to have it
say the label of the form field (in your example
"Effective:") automatically (ie Not Hardcoding that part of
the alert message)?

I guess I've never run across that as a problem as you
normally control the alert text for each field you have on
the web page.  And to be honest, I've never found a good
use for LABEL.

And, this is client side validation.  It's only the 2nd
most important validation.  Still not worth it to me.
 Added and unneeded complexity.  :)

Brad
www.bvstools.com

On Thu, 2 Oct 2003 17:04:49 -0700
 "Eric Kempter" <EKempter@xxxxxxxxxxxxxxx> wrote:
> The problem is in returning the label of the form field
> with the error.  For instance:
> 
> <LABEL><font color="red">*</font>Effective: <input
> type="date" name="effDate" size="10" border="0"></LABEL>
> 
> If the Effective date it wrong, it is simple to alert:
> effDate is incorrect / blank or <effDate value> is
> incorrect but it is substantially more difficult to
> alert: Effective: is incorrect because it is practically
> impossible to consistently retrieve LABEL form field
> names (in a for loop or otherwise) because of the format
> differences between HTML pages/forms.  You have to drill
> through the BOM.
> 
_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.