activexobject

How to write data to textfile using JavaScript

落花浮王杯 提交于 2019-12-12 03:36:56
问题 I have some problem to write date to a file Test.txt by using JavaScript. I have find answer in good too but I am still can't solve it. This is my code <script type="text/javascript"> function WriteFile() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var fh = fso.CreateTextFile("Test.txt", 8,true); x=document.getElementById("name").value; fh.WriteLine(x); fh.Close(); } And <form> <input type="text" id="name"/> <input type="button" value="Save" id="write" onclick="WriteFile()"/>

how to throw unhanded exceptions from flash active x controller callback

给你一囗甜甜゛ 提交于 2019-12-11 14:43:23
问题 i have written a application for improve the software quality used the Crashrpt api for windows. i have tried to integrate the api with My application.Basically i m using flash Active x shockwave object class for Loading swf file. if any exception is raised from WinApp its throwing the exceptions able to catch the report.if any kind of Exception is reised in flash call back method.its not able to process and not able to thrown the exception.i tried with ::SetUnhandledExceptionFilter

Conditionally set OLE definition

眉间皱痕 提交于 2019-12-11 13:44:24
问题 In Clarion, I'm looking to set the definition for an OLE dynamically in a window. Right now, this is how I define two OLE objects in a window: Window WINDOW('Test ActiveX Window'), AT(,,431,92), FONT('MS Sans Serif', 8,, FONT:regular), COLOR(COLOR:White), CENTER, ALRT(F2Key), TIMER(10), GRAY OLE, AT(10,3,11,7), USE(?MyOLE1), HIDE, CREATE('MyActiveX.MyActiveXCtrl.1'), COMPATIBILITY(021H) END OLE, AT(30,3,11,7), USE(?MyOLE2), HIDE, CREATE('SomeOtherActiveX.SomeOtherActiveXCtrl.1'),

HTML alternative if plugin is not available

梦想的初衷 提交于 2019-12-11 08:14:58
问题 What is the best practice for displaying an HTML alternative when a browser plug-in is not available? I'm embedding the plugin with an object tag like so: <object id="plugin0" type="application/x-myplugin"></object> This is what an unknown plugin displays as in Google Chrome, however I'd like the solution to work on all browsers (i.e. FF plugin/Chrome plugin/IE ActiveX object) -foot 回答1: If you're talking about flash, whatever you place within the object tag will show up if flash is not

how can i read cookie generated by web browser from activex control

风格不统一 提交于 2019-12-11 06:48:31
问题 I want to read and fetch the contents of a cookie generated by web browser from activex control. I dont want to read the cookie from javascript and pass it to activex control. I want read the cookie directly from activex control. If it is possible then suggest me the APIs for that and also same thing I have to achieve using NPAPI also (so please suggest APIs in here also). So looking forward for some positive answers. 回答1: What you can do is 1) hook up Web Browser events, using for example

ActiveXObject in IE11

南楼画角 提交于 2019-12-11 03:45:31
问题 I am having a hard time figuring out this problem. I have two different pages where I do the following query. Page 1 -> if (typeof(window.ActiveXObject) != "undefined") //returns true Page 2 -> if (typeof(window.ActiveXObject) != "undefined") //returns false Pages are running on same browser IE11 and same IIS server. Any suggestions? 来源: https://stackoverflow.com/questions/25311570/activexobject-in-ie11

Suppress ADO Security Warning in JavaScript/HTM Page

淺唱寂寞╮ 提交于 2019-12-10 21:14:37
问题 I have a fully functioning site stored on a network drive along with an Access Database which acts as the site's database. Due to lack of server side code, I am forced to use JavaScript to create an ADO ActiveX object to connect to the database. This works. The problem I am having is that whenever the user opens the site an ADO Security warning appears asking if they trust the site. If they press 'Cancel' the error thrown is: Safety settings on this computer prohibit accessing a data source

How to keep dropdown menu on top of ActiveX

回眸只為那壹抹淺笑 提交于 2019-12-10 19:32:44
问题 I have a drop-down menu created by JavaScript on all pages and some columns have up to 20 items. This drop-down appears topmost over all content in Mozilla browsers but in Internet Explorer it gets partially covered when an ActiveX object is displayed just below it. I have tried displaying the ActiveX in a DIV layer and setting z-index but so far I haven't found a solution that works. Adding style to the object tag had no effect... <object etc style='z-index:3;'> Applying style to a DIV

How to use ActiveXObject in Angular 4 project

非 Y 不嫁゛ 提交于 2019-12-10 07:53:22
问题 I am trying to use ActiveXObject like below getActiveXObject(pdfCtrl) { return new ActiveXObject(pdfCtrl); } checkPDF() { let plugin = null; if (this.getBrowser() === 'ie') { plugin = this.getActiveXObject('AcroPDF.PDF') || this.getActiveXObject('PDF.PdfCtrl'); } return plugin; } It gives error like ActiveXObject not found. In plain JS this works, but in Angular/typesript compilation phase it throws error. How do i handle this? 回答1: example for msxml - ActiveXObject is available only in IE,

ActiveXObject in Firefox or Chrome (not IE!)

和自甴很熟 提交于 2019-12-09 10:14:27
ActiveX is only supported by IE - the other browsers use a plugin architecture called NPAPI . However, there's a cross-browser plugin framework called Firebreath that you might find useful. http://stackoverflow.com/questions/7022568/activexobject-in-firefox-or-chrome-not-ie 但是chrome和firefox均宣布以后不再支持NPAPI,替代方案是Native Client: https://developer.chrome.com/native-client 项目地址: https://code.google.com/p/nativeclient/ 但是NACL目前还不支持IE 。 在Windows下搭建NaCl开发平台 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Firebreath解决方法: https:/