is there anyone here who knows if it is possible to get a variable from an activex control embedded into a php page?
I'm writing an activex control in visual basic 6 that will get the ip address of the client pc. i'm going to embed the control into my php page so it will run on the client pc and get the ip address. i wish to then store the ip as a variable in the php code.
is this possible??
thanks
activex
Moderator: General Moderators
I'm not sure you understandneophyte wrote:I don't know anything about active X. But how about writing the data to a text file and reading the contents in with PHP and create variables and so forth...
there are 77 computers on a different network that are behind a router/firewall. i'm needing to get their private ip addresses which cannot be retrieved by ANY scripting language. i must have an application running on the client pc that will get the ip address and send to my web php script. so, like i said, i'm wondering if activex and php can work together so i can obtain and store this info in a variable in php.
you understand now?
I'm thinking now of simply writing a vb application that will get the ip and mac address of the system, then simply open IE, send those variables as posted data the the program will close. ever heard of such a thing?Weirdan wrote:well, you could do it with xmlHttpRequest directly from your control. Once I used XHR to fetch the information from intranet website into Outlook application. It's almost certain that if VBA was able to use XHR, VB would be able to use it as well.
thanks.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
You can use Javascript to communicate with a ActiveX control...
Not sure how you implement ActiveX interfaces in VB, but you can communicate with a COM objects interfaces in any language.
So if you artiveX control is embedded in HTML then use Javascript to query the object and send the data to a HIDDEN field in a form or pass it as a query string???
Cheers
Not sure how you implement ActiveX interfaces in VB, but you can communicate with a COM objects interfaces in any language.
So if you artiveX control is embedded in HTML then use Javascript to query the object and send the data to a HIDDEN field in a form or pass it as a query string???
Cheers
javascript
Hockey wrote:You can use Javascript to communicate with a ActiveX control...
Not sure how you implement ActiveX interfaces in VB, but you can communicate with a COM objects interfaces in any language.
So if you artiveX control is embedded in HTML then use Javascript to query the object and send the data to a HIDDEN field in a form or pass it as a query string???
Cheers
that would be nice if javascript would talk to the activex control and retrieve the data from the activex control, then have the javascript post the data like a form would to my script...all automatically, without the user having to do anything. see?
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: javascript
Maybe this will help???linuxbox wrote:Hockey wrote:You can use Javascript to communicate with a ActiveX control...
Not sure how you implement ActiveX interfaces in VB, but you can communicate with a COM objects interfaces in any language.
So if you artiveX control is embedded in HTML then use Javascript to query the object and send the data to a HIDDEN field in a form or pass it as a query string???
Cheers
that would be nice if javascript would talk to the activex control and retrieve the data from the activex control, then have the javascript post the data like a form would to my script...all automatically, without the user having to do anything. see?
http://www.prolifics.com/docs/panther/h ... tivexa.htm