473,395 Members | 1,401 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,395 software developers and data experts.

Win32 ActiveX with COM support

I am creating a web application where I access a database on a SQL
server machine from local networked PC's via Javascript and HTML.
Unfortunately, Microsoft does not allow the ado intervace to fire
events back using Javascript or VBScript. I am trying to figure out how
to notifiy each client that is connected to the server whenever the
database changes. What I think might work well is to have a client
activeX component built with Python embedded in the html page that
receives event notification from a server component embedded in an ASP
page or maybe an HTML I don't know yet. At any rate, Can I create a COM
server / client component set with Python?

Mar 20 '06 #1
5 3254
Hi!

Can I create a COM server / client component set with Python?


Yes.

Michel Claveau


Mar 20 '06 #2
How would the controls run within a web browser. Would the python
interpreter automatically run after loaded into a browser? Also, the
python controls would be text files?

Mar 20 '06 #3
da*****@gmail.com wrote:
I am creating a web application where I access a database on a SQL
server machine from local networked PC's via Javascript and HTML.
Unfortunately, Microsoft does not allow the ado intervace to fire
events back using Javascript or VBScript. I am trying to figure out how
to notifiy each client that is connected to the server whenever the
database changes. What I think might work well is to have a client
activeX component built with Python embedded in the html page that
receives event notification from a server component embedded in an ASP
page or maybe an HTML I don't know yet. At any rate, Can I create a COM
server / client component set with Python?

You can most certainly create COM server with Python. This sounds like
a job for AJAX (asynchronous javascript and xml). Use javascript xmlrpc
client code to asynchronously talk to a xmlrpc server application (you
can write in python+twisted).

If you choose to go this way, you might want to take a look here:

http://developer.yahoo.net/yui/
Hope information helps.

-Larry
Mar 20 '06 #4
Re!

Make your COM server with PyWin32 (e.g. named PCOM)

In your HTML, with JScript, you can :

open :
try{ var pserv = new ActiveXObject("PCOM");}
catch(error){alert('Ne trouve pas PCOM');}

call :
var vret = pserv.youfunction( par1, par2) ;
With PyWin32, all the remainder is automatic
(the example is only for I.E.)

@-salutations
--
Michel Claveau

Mar 20 '06 #5
Thanks to Michel and Larry, very interesting. How about database
access. Can I create a Python component that will run in my browser and
be able to use the ADO (active data objects) activeX interfaces. I am
right now using the ADO activex with javascript but javascript and
vbscript can not subscribe to ADO events. Can the Python component
receive events from the ADO interface within the web browser.Thanks, Dan

Mar 20 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
1
by: torbs | last post by:
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...
2
by: Tamir Khason | last post by:
I have a control (created by interop from Win32) wich placed into other control (regular C#), BUT I can not recieve mouse events from Win32 control even when listening to WM_MOUSE... messages from...
0
by: danbrwn | last post by:
I am creating a web application where I access a database on a SQL server machine from local networked PC's via Javascript and HTML. Unfortunately, Microsoft does not allow the ado intervace to...
4
by: Henrik Dahl | last post by:
Hello! Is it possible to use Visual Studio 2005 or, secondarily, Visual Studio .NET 2003 to create ActiveX controls which may be consumed by VB 6.0 programs, i.e. dealt with on forms in the...
1
by: Jialiang Ge [MSFT] | last post by:
Hello Philippe, In addition to bruce's points, I'd suggest the KB article http://support.microsoft.com/kb/317392. It demonstrates how to host an ActiveX control in ASP.NET (for your first...
3
by: PhilTheGap | last post by:
Hello, I woulf like to hide an activeX object in a aspx page. The ActiveX is decalred statically in the HTML code, and I'e tried to set the html visible "property" to "false" in the javascript...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.