473,413 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

ActiveX control doesn't run despite warning

Hey. I wrote a small code, and it seems to work all right, however the program don't run when i fill the entire form, in spite of the warning of running an activex control bla bla. Any suggestion?

[HTML]<html>
<head>

<SCRIPT LANGUAGE="javascript" TYPE="text/javascript">

function go()
{
w = new ActiveXObject("WScript.Shell");
w.run('hello.exe');
return true;
}

function check()
{
if (document.info.length.value=="")
{
alert("Inserir comprimento!")
return false
}
else if (document.info.weight.value=="")
{
alert("Inserir peso!")
return false
}
else { go() }

}
</script>
</head>
<body>

<form name="info">
Lenght:
<input type="text" name="length" size="10"><p>
Weight:
<input type="text" name="weight" size="10"><p>
<input type="button" value="Run!"
onClick="return check(); ">
</FORM>

</body>
</html>[/HTML]
Sep 6 '07 #1
1 1311
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

Make sure you use CODE tags when posting code.

I've changed the thread title for you. Remember to use a good thread title.
Sep 6 '07 #2

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

Similar topics

11
by: Dave | last post by:
I have this sample HTML code: <html> <head> <script type="text/javascript"> var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); </script> </head>
2
by: Joe | last post by:
I have an ActiveX control in my web page and the control doesn't install on a XP machine. It works fine on Win2k pro. The warning dialog box does appear on both machine and does allow yes to be...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
4
by: fniles | last post by:
I have an ActiveX control in my web page that I tried to access using intranet. I have implemented IObjectSafety in the ActiveX control, and when I created the CAB file using VB Pakage and...
11
by: Tim | last post by:
hi, I would like to create an application that runs in a web browser. It must have access to the client machine. I guess a bit like the microsoft update tool at windowsupdate.com Having never...
6
by: fantum | last post by:
I have created a small activex dll to do a background task on my web server. I fire it off with a set myjob = server.createobject(myactivex) and it runs. I do not do a set myjob = nothing and so...
6
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...
7
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.