Hi Shalom;

When I am doing that kind of validation I make a roundtrip to the server using AJAX

If you are not familiar with AJAX is you might read this article http://www.codeproject.com/Ajax/AjaxExplained.asp - which also have the source code needed for a small AJAX implementation.

--
Niels Liisberg



using  AJAX for that kind of validations. Each roundtrip to the server is
----- Original Message ----- From: "Shalom Carmel" <shalom@xxxxxxxxxx>
To: <web400@xxxxxxxxxxxx>
Sent: Tuesday, July 25, 2006 8:27 AM
Subject: Re: [WEB400] another net.data question


Use AJAX. Create a net.data function to handle the query, and use
javascript to invoke it with the xmlhttp method.

Shalom Carmel
-------------------------
www.venera.com


----------------------------------------------------------------------

message: 1
date: Mon, 24 Jul 2006 12:45:19 -0400
from: "rick baird" <rick.baird@xxxxxxxxx>
subject: [WEB400] another net.data question

hey all,

I'm working on a simple form for transaction input where I need to
verify several different items entered, most of which I can do using
simple javascript functions on an "onblur" event, but one in which I
need to verify the field against a 400 db2 file.

I can do the verification via an SQL statement, but I'm having brain
lock on how to embed a net.data function in javascript function.

My goal is to verify the item and throw up an alert() before
submitting the form to the next %html block, and to not have it behave
differently than the javascript alert() edits.

any ideas would be greatly appreciated.

Thanks,

Rick


------------------------------

--
This is the Web Enabling the AS400 / iSeries (WEB400) digest 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.



End of WEB400 Digest, Vol 4, Issue 199
**************************************

--
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 ...

Replies:

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.