|
I need to wrap an IE ajax request to notify me when it happens. ie i need to know when open is called on this:
var xhr = new ActiveXObject("Microsoft.XMLHTTP");
The only way to do that(i think) is to implement the ActiveXObject constructor to proxy open...
Started by mkoryak on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Like this should work:
XHR = new ActiveXObject("Microsoft.XMLHTTP"); var XHR.prototype.old_open) { this.request = (window.XMLHttpRequest)? new XMLHttpRequest(): new ActiveXObject("MSXML2.XMLHTTP=new ActiveXObject....
|
|
I have the following declaration in my code:
<object id="myObject" name="myObject" data="data:application/x-oleobject;base64,ab9qcMENN0WE41oij7hs8764yu+YEwAA2BMABB==" classid="clsid:83A04F76-85DF-4f36-A94E-BA3465007CDA" viewastext codebase="someAssembly...
Started by Kragen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To create a new instance:
var newObj = new ActiveXObject(servername.typename[, location]);
As you can see details about it here: MSDN ActiveXObject (you'll find some info at the end of the document)..
|
|
My source is working in IE but not in mozilla. please help me.
<script type="text/javascript"> <!-- var adOpenDynamic = 2; var adLockOptimistic = 3; /* Path of database. */ var strDbPath = "..\\SRVGdb.mdb"; /* Here is the ConnectionString for...
Started by Vikram Phaneendra on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Check.
ActiveXObject is IE specific and you wont be able to execute that in a non IE browser.
|
Ask your Facebook Friends
|
Hi..
I wrote a javascript function in my html page to execute an .exe file. for this i used ActiveXObject. my function is:
// JavaScript
function openWin(url) { if (!document.all) { alert ("Available only with Internet Explorer."); return; } var ws = ...
Started by shan.swf on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But you can't force them to do it because....
Http://www.nrc.gov/reading-rm/adams/install/enabling-active-x.html
If you want your users to not seeing this message, then they should enable it .
You should enable activeX in Internet explorer security settings.
|
|
I use ths script in Default.aspx page.
<script id="clientEventHandlersJS" type="text/javascript"> function Button1_onclick() { var locator = new ActiveXObject ("WbemScripting.SWbemLocator"); var service = locator.ConnectServer("."); var properties...
Started by Vikas on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The WbemScripting.
Beyond this, ActiveXObject is only available, terminate them, and even launch new applications! Talk about a security breach...
Confirm your security settings in IE.
For scripting.
|
|
My program is getting employee details in web page using javascript. This is successfully working in IE5,6,8. but not working Mozilla Firefox. Please Help me...
Thanks in advance
My source code is:
<script type="text/javascript"> <!-- var adOpenDynamic...
Started by Vikram Phaneendra on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
/ **/ function XHConn() { var xmlhttp, bComplete = false; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { try { xmlhttp = new XMLHttpRequest....
|
|
Hello everyone,
I keep getting the following error's:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://site...
Started by sanders on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Is this going outside of your domain?
Are you using a relative url or absolute?
I have the same problem and going outside of my domain, can you help me? .
|
|
Hi all,
I'm trying to convert an HTML table to Excel in Javascript using new ActiveXObject("Excel.application") . Bascially I loop through table cells and insert the value to the corresponding cell in excel:
//for each table cell oSheet.Cells(x,y).value...
Started by jackysee on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can avoid Excel's date parsing by entering the data using its native 'serial... .
In Vbscript, we use to resolve this by
If IsDate(Cell.Value) Then
Cell.Value = DateValue(Cell.Value)
End If
May be, In java script also you need to play with same approach, .
|
|
When running this script:
01.<script type="text/javascript">
02. // initialize ActiveXObject and create an object of Scripting.FileSystemObject.
03. var fso = new ActiveXObject("Scripting.FileSystemObject");
05. // returns the folder object associated...
Started by mrfoyne on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at webdeveloper):
|
|
On Tue, 30 Jun 2009 13:32:03 -0700 (PDT), DL <tatata9999@gmail.com
The following code to launch Windows Paint program with an image file
failed. The problem seems related to the location of the image file
under the Program Files folder (for the...
Started by DL on
, 15 posts
by 7 people.
Answer Snippets (Read the full thread at omgili):
...@litotes.demon.co.ukwrote:
Yes, I understand the security ramification of the ActiveXObject call,
it's local;Richard@litotes.demon.co.uk
Security aside, Firefox does not even have the ActiveXObject
constructor (unless they have you....
|