Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Javascript error in VS 2008 web site

$
0
0

I copied an old VS 2008 web site from one PC to another.  This web site runs fine on the old PC.  But I get this error when I run it on my new PC:

JavaScript runtime error: Object doesn't support property or method 'click'

Here is the javascript method that generates the error:

function OnCompleteValidateLogin(Result)

{    

      if (Result != '')

          {        

                alert(Result);    

          }

          else

          {        

                var tdLoginButtonColumn = document.getElementById('tdLoginButtonColumn');        

                var cmdASPLoginButton = tdLoginButtonColumn.childNodes[0];        

                cmdASPLoginButton.click();    

          }

}

It bombs on cmdASPLoginButton.click();

I'm not reat strong with javascript.  I also did not write this method.  I'm confused why it works on the old PC and not the new PC.  Can anyone help me out?

Thanks in advance!

 


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>