Object doesn't Support this Property or Method

Well if you have reached this post then you was probably having the same problem as me. At first the error message might seem quite generic but when I tell you what was causing the error for me it will all make sense.

In my case I had a div with the same id as a JavaScript variable on the same page. So once my page had been parsed up to the div the JavaScript variable/object which was declared before the div was no longer a valid object and any calls to methods or properties of that object further down the page were invalid / not supported.

Only a small post this time round as I have been working on a few bigger projects. Will hopefully get them into writing and post them here shortly

Once again if anyone has had a similar error or is still struggling with this error message use the comments section below and I will try my best to help.

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.