473,796 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

activex is undefined

shweta123
692 Recognized Expert Contributor
hello
I am trying to create a wscript.shell object through javascript. I am getting the message as 'Activex is undefined' even after changing the setting for internet Tools.
This is my code
<script language="javas cript">
var prog = "d:\\ASpPoerter \\testnycard.ex e";
var oshell =new ActivexObject(W script.Shell);
ret=oShell.run( prog ,1,True);
window.close;
<script>
does anybody have idea?


Shweta
Nov 20 '06 #1
2 3476
AricC
1,892 Recognized Expert Top Contributor
Maybe this or this will help I've never used the shell commands looks like fun!


HTH,
Aric
Nov 20 '06 #2
shweta123
692 Recognized Expert Contributor
Maybe this or this will help I've never used the shell commands looks like fun!


HTH,
Aric

even that is not working its just starting the process but i cant c anything on the screen.

shweta
Nov 27 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
6001
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is a ocx developed my me use vc6,this ocx works fine in wxpython. but you can see i only change this ocx with a new DICOM ocx and set up eventClass,
7
2826
by: NewbieJon | last post by:
I am attempting to send the variable "sComputerName" from my ActiveX script to "GetInfo.asp" using javascript. (Having been advised this is the way to get my ActiveX variable into my ASP script) My code is below. I am getting the following error "MyForm.oNetwork.Value is Null or is not an object". I'm struggling to diagnose what to do next. I'd very much appreciate some help Many thanks <HTML><BODY><FORM NAME="MyForm"...
2
7578
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run the VB program on that same machine, I can view the ActiveX control fine. He is using Citrix. The same ActiveX controls can be viewed on other machines. When trying to view 1 of the ActiveX control, he got an error "Visual Basic Run-time redist...
4
1550
by: mike | last post by:
I'm tring to learn how to use activeX controls in my C++ programs but have hit a stone wall. I have a server control that's suppose to pass the clients name and password. The VB example shows it as User.Name and User.Password VC has the function declared as: OnUserLogin(LPDISPATCH User, BOOL FAR* Cancel, BSTR FAR* Message) I can't figure out how to get the user's name and password. Can any one
0
1080
by: Brett | last post by:
I'm trying to use an ActiveX control that works fine in VB.NET but not in C#. The VB projects places the ActiveX control on a form. The C# project doesn't because the control is used in a non form class. Here some samples of the code and the values I get in C#: //this code is in the windows forms code generation area Public WithEvents clUploader1 As AxclInetSuiteX5.AxclUploader .... Friend WithEvents Button1 As...
0
2439
by: Edward | last post by:
I am completely in the dark about ActiveX, but I up until yesterday I used to have a working app with ASP.NET. Now the client wants to fire up a Word document from inside the browser and have given me an ActiveX control to do it. This is the code (well, the pertinent bits anyway) PLEASE NOTE: THE LINES MARKED WITH *** ARE NEW AS A RESULT OF THIS NEW REQUIREMENT
2
2535
by: Joe | last post by:
I have a javascript that calls a method of an activex control. I want to get the return value, S_OK or S_FALSE. I tried var r = document.Form1.PCtl.Download('h') document.write(r) // to see the value but r is coming out as undefined.
6
8079
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll .dll I can not call the functions in the ActiveX component. In the next step I tried to use the ActiveX component in a class library. I simply added a reference to the corresponding COM component. This this only
1
2527
by: ebonnett | last post by:
What is the best way to test for the existence of an ActiveX Control on a client? I tried this: var control = new ActiveXObject("namespace.classname"); if (control == undefined) do something...; else do something else...; It seems that the code just stops execution if the activexobject doesn't exist. Any help?
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.