Javascript locks all drop downs from working

I have a web page with vb.net code behind. The page contains several combo boxes, and goes through some validation rules after user clicks the 'submit' button. If a validation error is found, a hidden <div> is displayed on the web page with the errors. The page scrolls up to the validation <div> using some javascript; see below which is executed from the code behind. For some reason, the javascript is causing the combo boxes and text input fields to be frozen. If the page is refreshed, the user can then modify or update the input controls. Anyone have an idea what is going on?

Javascript:

        Dim script As String = "document.getElementById('ValidationResults').scrollIntoView(true);"
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True)
Stacey FontenotAsked:
Who is Participating?
 
Julian HansenCommented:
Dim script As String = "document.getElementById('ValidationResults').scrollIntoView(true);"
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True) 

Open in new window


This is not JavaScript.

This is but is meaningless without a context - can you give us the client side code (a link or view source and then cut and paste html here)
document.getElementById('ValidationResults').scrollIntoView(true);

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.