activex

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
linuxbox
Forum Newbie
Posts: 18
Joined: Fri Dec 12, 2003 5:16 pm

activex

Post by linuxbox »

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
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

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...
linuxbox
Forum Newbie
Posts: 18
Joined: Fri Dec 12, 2003 5:16 pm

Post by linuxbox »

neophyte 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...
I'm not sure you understand :)
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?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

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.
linuxbox
Forum Newbie
Posts: 18
Joined: Fri Dec 12, 2003 5:16 pm

Post by linuxbox »

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.
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?
thanks.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

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 :)
linuxbox
Forum Newbie
Posts: 18
Joined: Fri Dec 12, 2003 5:16 pm

javascript

Post by linuxbox »

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

Post by alex.barylski »

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?
Maybe this will help???

http://www.prolifics.com/docs/panther/h ... tivexa.htm
Post Reply