Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Activex Object Sample Code Snippet

 
Manikandan Periyasamy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the following code Snippet in my javascript .i am using Tomcat server.

var oXMLHTTP = new ActiveXObject( "Microsoft.XMLDom" );
var sURL = "http://sys21/webframetest/validate.jsp?DateTime=" + "'" + target + "'"
oXMLHTTP.open("GET", sURL, false);
oXMLHTTP.send();

I am received the follwoing error msg:
Object doesn't support this property or method
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Object doesn't support this property or method

That is the sign that something is being called before it is loaded on the page. Place the code inside of a function that is called onload of the page and see if that helps.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic