Results 1 to 2 of 2

Thread: [RESOLVED] RegisterClientScriptBlock

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Resolved [RESOLVED] RegisterClientScriptBlock

    I keep getting an error from the browser saying that it is expecting a ;

    Can anyone help me SEE the error of my ways? Thanks....

    This is inside my Page_Load Event.


    Code:
     _theFunction = "<script language=javascript> " & _
                "function textCounter(field, countfield, maxlimit) " & _
                    "{" & _
                        " If (field.value.length > maxlimit) " & _
                                    "field.value = field.value.substring(0, maxlimit); " & _
                        " Else " & _
                            "countfield.value = maxlimit - field.value.length; " & _
                    "}" & _
                    "</script>"

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Re: [RESOLVED] RegisterClientScriptBlock

    Stupid Js is CASE sensitive!

Posting Permissions

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



Click Here to Expand Forum to Full Width