Detect If ActiveX Is Disabled?
Aug 1, 2009
I am currently detecting for Shockwave within IE by doing the following:
var isInstalled = false;
if (window.ActiveXObject) {
var control = null;
try {
control = new ActiveXObject('SWCtl.SWCtl');
} catch (e) {
[Code]...
This works as expected and if it fails to detect Shockwave I tell the user to install Shockwave.The problem comes when AcitveX is disabled as it still returns the same message that it's not installed. I would prefer to be able to include an extra step to detect if ActiveX is disabled, in which case I can tell the user to enable it rather than giving them false advice. My only idea would be to detect for an ActiveX Object that every IE user should have installed.
View 1 Replies
ADVERTISEMENT
Feb 14, 2009
Can Javascript be used to detect a certain url and then "not" write some html according to that url and also detect something on the page and "then" display some html?.
Example: I'm working on a volusion site that uses asp. There's basically only one page that's changed dynamically. I would like to display some html when and only if the cart has any items in it. But also not to show up on the check-out pages.
The page dynamically displays "Your cart has 1 item in it..." when the visitors puts something in their cart.
So could javascript detect when this is displayed then write some html and then also detect if the url is showing the cart and then not show the html?
View 24 Replies
View Related
Jul 23, 2005
Im supposed to write an activeX dll that will be called by javascript
(with the OBJECT TAG) and was wondering if its supposed to have any
special features or its a regular activeX dll.
Also I would like to know if it matters if its written in C++ or VB,
and if someone has sample C++ code that does this i will be grateful
to see!
View 1 Replies
View Related
Jul 20, 2005
I have a ActiveX object. This is working fine in English windows and IE, But causes IE to crash in Chinese windows.
View 1 Replies
View Related
Jan 6, 2010
I have JavaScript code, that exports a HTML table to MS Excel.
This works fine on my development (local) server, however, it fails to work on my 'live' IIS server. Once I click on the Export link, I confirm the "Export to Microsoft Excel?" message, then nothing happens. I am not sure if MS Excel needs to be installed on the server or not?code...
View 7 Replies
View Related
Jan 6, 2010
I have JavaScript code, that exports a HTML table to MS Excel. This works fine on my development (local) server, however, it fails to work on my 'live' IIS server. Once I click on the Export link, I confirm the "Export to Microsoft Excel?" message, then nothing happens. I am not sure if MS Excel needs to be installed on the server or not?
<script language="javascript" type="text/javascript">
function ExportToExcel() {
input_box=confirm("Export to Microsoft Excel?");
if (input_box==true) {
[Code]....
View 5 Replies
View Related
Jan 3, 2003
I thought I'd post this and see what you guys think (go easy on me :)). Anyway, my teacher gave the class a project to see if we could make a hangman game with an ActiveX object's draw methods and some good ole' DHTML. I've always wondered why javascript doesn't have any draw methods or graphics objects like Java has.
I suppose SVG will take the place of activeX and Flash... hopefully. Once we had the right object id it was a piece of cake (I found it by the way). Anyway, here's my program. I would've put the code in this post but I have a few includes and graphics that go with it. Best viewed in 1024 x 768 resolution, and IE only (of course).
View 2 Replies
View Related
Oct 31, 2006
I have a windows media file that I want to play on a webpage but the stupid activex content blocker keeps on poping up. I have heard that there is a way of getting around this or to preload the content. Does anyone know how to do this?
View 2 Replies
View Related
Mar 9, 2007
I built a form that utilizes arrays for storing data, prototype objects stored in arrays, and DOM using getElementByID and getElementByName. Now, in XP SP2 with the security center turned on, I get alerted by IE6/7 that there is an ActiveX script on the page and it asks to be allowed.
I don't want users IE to see this ActiveX warning. First, the users going to be using this form are not exactly tech savvy enough to know to allow it. Second, I had no idea JavaScript was related to ActiveX--which begs the question, what sort of things cause JavaScript to be flagged as ActiveX?
View 3 Replies
View Related
Jul 23, 2005
Is there any way i can show my excel chart on my web page.
View 2 Replies
View Related
Oct 22, 2005
How can I create a fade with javascript that fade an activex object
(quicktime) to the background and not to the IE windowed control.
I call this function several times, each time decreasing the "opacity".
id is the quicktime activex object.
I have tried to set background:tranparent and
background-color:transparent in my style sheet.
//change the opacity for different browsers
function changeOpac(opacity, id) {
var object = document.getElementById(''+id+'').style;
if (object.opacity) {
object.opacity = (opacity / 100);
} else if (object.MozOpacity) {
object.MozOpacity = (opacity / 100);
} else if (object.MKhtmlOpacity) {
object.KhtmlOpacity = (opacity / 100);
} else if (object.filter) {
object.filter = "alpha(opacity=" + opacity + ")";
}
}
View 1 Replies
View Related
Jan 14, 2006
i could create it successfully, but i can't manipulate it
<html>
<body>
<object height="50% width="50%" classid="clsid:XXXX....." id
= obj>
<script language= javascript>
obj.gridVisible= true //the method call here
don't take effect
</script>
</body>
</html>
here is the interface i implemented in my control
interface IControlInterface : IDispatch
{
[id(..), propput]
HRESULT gridVisible ([in] VARIANT_BOOL bVal);
}
anything wrong?
View 1 Replies
View Related
Jul 19, 2006
I know this question has been asked a million times but I still can't
get an event from an embedded ActiveX Exe to be caught in javascript.
I am able to access all the properties and methods of the ActiveX Exe,
I just can't seem to catch the event.
I've declared my object as follows:
<OBJECT
ID = "Test3"
CODEBASE = "http://www.amys-attic.com/Test3.exe"
CLASSID = "CLSID:2ACAEF35-445C-4717-8ACB-A3423E8D64EB"
style="display:none;">
</OBJECT>
My javascript event handler is as follows:
<script language="javascript" for="Test3"
event="PipeEvent(bIsPresent)">
alert("Pipe Detect");
</script>
The event handler never fires. I debugged the ActiveX Exe and verified
that the event is indeed being raised. I am able to catch the event in a VB6 test container project as well. Any ideas?
View 3 Replies
View Related
Jul 20, 2006
How to judge whether a browser supports ActiveX?
Some browser like Firefox doens't support ActiveX by default, but can
do it with plugin support. Take Firefox for example, it has a whitelist
(activex.js) of allowed ActiveX. So, "new ActiveXObject" may not be a
good idea. The ActiveX control for test is possibly not in the
whitelist.
Is there any better way to do that?
View 2 Replies
View Related
Jul 20, 2005
There is two lines from my script:
<script language="javascript1.2">
fso = new ActiveXObject("Scripting.FileSystemObject");
ws = new ActiveXObject("WScript.Network");
</script>
Everything working fine, but sometimes some admin change default IE options and during loading the page on screen i can see something like that "Can I run the activex and bla bla bla". This message for my user equal error and I get many phones, Can I catch insufficient permision, or that message and hide it?
View 3 Replies
View Related
Feb 3, 2010
How can I handle ActiveX events in jQuery?
View 1 Replies
View Related
Apr 2, 2009
After upgrading to jQuery 1.3.2 users of our application will be prompted with a confirm dialog: "Do you want to allow software such as ActiveX controls and plug-ins to run?" The users have to use IE6 (yes I know - but this is a very restrictive and old fashioned corporate environment and I have no influence on the browser configuration). Replacing the content of jquery-1.3.2.js with the content of jquery-1.2.6.js immediately fixes the problem. But we would like to avoid that if possible. Is there any known solution to this?
View 3 Replies
View Related
May 15, 2009
I have a web page which contains a legacy ActiveX control (I know...) and am having a problem with the ClueTip plugin. Whenever a tooltip is displayed which should obscure the ActiveX it instead is drawn behind the ActiveX control. I have tried setting the value of cluezIndex to 1000, and also tried adding "<param name="wmode" value="transparent" /
View 1 Replies
View Related
Mar 23, 2009
Quote: Originally Posted by KorRedDevil ActiveX or Java allowance, if malicious applications, could do really harm, but no javascript. Unfortunatelly, IE has ActiveX and javascript linked on the same level of security, so that when disable ActiveX you disable javascript as well.This is the problem I am experiencing now KorRedDevil.I have just signed up to devshed now, trying to find some ways to allow javascript, yet keep active-x disabled. am in the middle of creating a website, using a javascript drop down menu. Looks really nice, but when you load the page on IE, it keeps displaying theactive-x warning, requesting permission to allow. My concern is that a lot of people dont understand this message. Automatically think there is something dangerous about the site, and deter them from visting. And they will not be able to navigate round the site effectively without the drop down menu!I'd imagine there has to be a way, possibly with a certain metatag maybe?
Reason being, GMail is designed using javascript. How come IE allows their javascripts to work, but no one elses?!Must be a way.And also, I use a .js file to keep the site resized and well positioned, regardless of browser. This script gets by no worries at all. Could it be because it is an external javascript, and not linked in within the html itself?And with other broswers, ie. Netscape, Firefox etc. Do any of them have issues with the Javascript / active-x warning?
View 9 Replies
View Related
May 3, 2011
I have an html file I've built with embedded Javascript (using ActiveX) that successfully reads a file on my local hard drive when I run the html file through my web browser (IE) locally. However, when I copy the html page up to a webserver and access it through the internet, it doesn't appear to be reading the local file. I'm assuming this can't be done because of security reasons? Am I correct in that? Is there any way using Javascript/ ActiveX that you can get a webpage on the internet to access a file on the visitor's local drive?
View 9 Replies
View Related
Dec 12, 2005
I have develop an ActiveX with Visual C++ 6
And I will call functions on this ActiveX from a javascript.
I know how to instantiate the activex object (with the balise <object>).
But how can I do to call a function of my ActiveX and pass to this function
some parameter by reference.
Here is what I have :
the function in the ActiveX :
void test(long *t, long FAR* nb)
{
t = 3 ;
}
And here is what I try to call this function in javascript:
var myT = 0;
my_control.test(myT); // here is the problem that
alert("T : " + myT);
But I receive the value 0
So how can I do to pass parameter by reference to a function of an ActiveX?
Is there anything to change in my function in the ActiveX?
View 2 Replies
View Related
Jun 29, 2010
I facinga strange problem. I have developed a active-X control to play video on the top of VLC player in C# It contains a windows panel in which video is displayed Its is placed in a DIV tag , like this :
[Code]...
View 1 Replies
View Related
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
Mar 3, 2011
I have written JS, in which I used activex control which does not work on mozila, anyone has idea to to same thing without activex , here is code which just upload the textfile contains on html page .
[Code]...
View 1 Replies
View Related
Jul 30, 2009
How to enable axtiveX control using Javascript ...
View 1 Replies
View Related
Jul 1, 2010
I have an ActiveX Javascript function, that pulls data from an HTML table and then populates an Excel Workbook. This works OK, but I need to save the workbook to a network path. I have successfully saved it locally:
Code:
// Save the Excel Workbook
xlBook.SaveAs("C:\TEST.XLSX");
But this does not:
Code:
// Save the Excel Workbook
xlBook.SaveAs("\Server\Projects\TEST.XLSX");
When attempting this, I get this error:
SaveAs method of Workbook class failed
Which refers to the above. I have tried different variations, but with little success (sometimes the path will default to the Server's 'My Documents'/'User Shared' folder, with the filename:
ServerProjectsTEST.XLSX
View 5 Replies
View Related