Results 1 to 11 of 11

Thread: Jscript Validation of text input

Threaded View

  1. #7
    Join Date
    Oct 2002
    Posts
    933
    >>..I have been using this control ...

    what control?

    >>...I started using the code you provided
    Specify what code you have problem? The one in the previous thread? ->

    Dim ta As String = "<script language='javascript' type='text/javascript'>" & vbCrLf
    ta &= "<!--" & vbCrLf
    ta &= "function MaxArea(Obj, MaxLen)" & vbCrLf
    ta &= "{" & vbCrLf
    ta &= "return (Obj.value.length <= MaxLen);" & vbCrLf
    ta &= "}" & vbCrLf
    ta &= "-->" & vbCrLf
    ta &= "</script>" & vbCrLf

    Dim ed As New Tornado.z
    With ed
    .dbQP = "U=3|M=g!sysind=t|S=2|D=NWIND|Q=employees|Ni=b 5,up date|gdf=0,1,2,notes|bm=employees;0"
    .dbEditUpdateFlds = "(+^~)fi=0|ty=ronoup^1^fi=notes|ty=textarea|ta g=ro ws=5 cols=20 onkeypress='return MaxArea(this, 15);'"
    .dbOptions = "EditTitle = none"
    .dbSendHead = ta
    .ASPdbNET()
    End With

    To make sure - send me your DLL and I'll use the above code to get the error. Remember you have to change the delimiters in order to escape incorrect parsing parsing problem.

    Frank
    Last edited by Frank; 05-30-2007 at 11:28 AM.

Posting Permissions

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