ActiveXObject

Jul 23, 2005

I am having trouble with ActiveXObject. I have a function which includes
this snippet:

alert('INIT 1');
orgdoc = new ActiveXObject('Microsoft.XMLDOM');
alert('INIT 2');

I see the "INIT 1" alert box, but "INIT 2" is never displayed. It is as if
the ActiveXObject fails and the function exits without executing anything
else. Is that possible? And what could possible problems be?

View 2 Replies


ADVERTISEMENT

ActiveXobject Connection...

Jul 20, 2005

What is wrong with my code....The function "function ValidaProdutos()"
is not working....I need to execute the procedure to insert data in a
Database.... What can I do to have this code working.... I don't get
error line, but nothing happen in my database.... I think the
connection is not right.... Could anyone give a sample code on how to
do that.....

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<script language='JavaScript'>

............

View 3 Replies View Related

Renaming Outlook Attachment With ActiveXObject?

Feb 24, 2010

I have a piece of javascript that attaches a PDF document to an outlook form. However the PDF that I am pulling has a default name such as 'test' and I would like to change it to say 'client.pdf'. Is this possible in the script below?

var theApp = new ActiveXObject("Outlook.Application");
var theMailItem = theApp.CreateItem(0);
theMailItem.to = "test@test.com"
theMailItem.Subject = "test";

[Code]...

View 3 Replies View Related

ActiveXObject - CiscoURLProxy.URLGrabber - Error

Jun 23, 2007

I tried to use the ActiveXObject("CiscoURLProxy.URLGrabber"), but when i run the code it gives the following :

Error Type:

View 3 Replies View Related

ActivexObject - Read Text File Only In IE

Jun 8, 2011

I am using ActiveXObject to read a text file using javascrilpt, it is working in IE but when i use in other browsers, it is not working. Code which I have written:
var fText;
var location = "D:\a.txt";
var fso = new ActiveXObject("Scripting.FileSystemObject");
var tempFile = fso.OpenTextFile(location, 1);
while(tempFile.AtEndOfStream!=true) {
fText = tempFile.ReadLine();
}
The above code is working in IE but not working in other browsers.

View 3 Replies View Related

Calling ActiveX Object From JSP Using ActiveXObject Method

Jun 13, 2004

I am trying to call a ActiveX object from JSP using the ActiveXObject method in javascript. I have a dll filed named Patchgenerator.dll which is registered and assigned a prog id "Patchgenerator.PatchGen.1" which is being passed as an argument to the ActiveXObject method. Below is the code i am trying to execute..

[Code]...

When i write the above code and save it as an html file it works fine..the activex object is created and the methods are called , but when i copy the same code to a file and save it as jsp file under webapps folder under tomcat it doesnt work and reports a javascript error with the error being: Automation server cant create the object at line : var SSOObj = new ActiveXObject("Patchgenerator.PatchGen.1");

View 6 Replies View Related

Object Doesn't Support Property Or Method - ActiveXobject

Feb 22, 2010

I have created Class1.dll file . and in javascript I am creating ActiveXobject . when i debug the application. Its gives error like Object doesn't support this property or method.

My code is:

View 1 Replies View Related

ActiveXObject("Microsoft.XMLHTTP") Returns Null?

May 1, 2007

Just trying to create a basic xmlhttpobject.
However, the following always returns null

xmlhttpobj = New ActiveXObject("Microsoft.XMLHTTP")

(it is Microsoft. and not Msxml2. I've already narrowed that part
down; just trying to create the object now)

If I check for the value of xmlhttpobj, it is always null or
undefined.

IE settings aren't blocking any ActiveX

View 1 Replies View Related

Load Html Stream Directly Into Webbrowser In Delphi - Error ActiveXObject("Microsoft.XMLDOM").load(filename)

Apr 3, 2009

I am trying to load html stream directly into webbrowser in delphi. The html contains java script. It loads xml and xsl files and display the xml content in the web browser. I got an error, says access denied for the command xmlDoc.load(fname); If I save the html into a file, test.html, and double click it, it is fine, no problem. The code is actually copied from [URL].

[Code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved