Help required..

Results 1 to 3 of 3

Thread: Help required..

  1. #1
    Urgent Guest

    Default Help required..

    I am writing an application in which the my form is created based on the values in a table in a database where a certain flag is set if a certain field is to be displayed.<BR><BR>I need to do client-side javascript validation for the same form.<BR><BR>I am not sure how to do this as I am not sure while coding which fields will be displayed and which will not.<BR><BR>Does anyone have any suggestion?<BR><BR>

  2. #2
    KPW Guest

    Default RE: Help required..

    I am not sure but I think you can test for the existence of a field by doing something like<BR><BR>if (document.myForm.myField) {<BR>&nbsp;&nbsp;// field exists<BR>}<BR><BR>I am basing this off of how you can do some browser sniffing by doing<BR><BR>if (document.layers) {<BR>&nbsp;&nbsp;//browser is netscape<BR>}<BR><BR>HTH

  3. #3
    Urgent Guest

    Default RE: Help required..

    Thanks...i shall try it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts