Hi Schunel,
Thanks for the reply. the code is pretty simple. At the onClick of Save button, I want to read in the textfield.value in the Dataview (it has multiple rows).
if textfield.value==null i want to pop up an alert.
Hope this give some info.
Thanks again,
girish//
Ok,
First test the value with an empty string.
The main problem is to get the textfield. In a dataview sssw attributes internal names to the elements, so it's not easy to get all the textfiels wich are in the dataview.
I think you have to generate yourself the dataview with the rowGenerateBegin or something like that. In this methode you build the HTML code of the raw and naming yourself all your textfields. After you can dynamically write your procedure wich validates the data.
To get a textfield's value on the page, try Page.textfield.value or document.forms[0].textfield.value.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.