Wrox Programmer Forums
|
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2003, 06:45 AM
Registered User
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default OCX question

How can I pass data from an ActiveX control displaying at the client browser to the server.

As I know OCX runds on client side, so how can it communicate with the server ??

Any suggestion would be appreciated.

 
Old December 18th, 2003, 07:22 AM
Authorized User
 
Join Date: Jun 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to introduce events/callbacks into your component. Check out the coffee project example on MSDN

 
Old December 18th, 2003, 07:25 AM
Authorized User
 
Join Date: Jun 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can also use post using xml to a backend message router. such as:

set xmlHttp = server.CreateObject("MSXML2.xmlHttp")
    xmlHttp.Open "POST", "http://devmessagertr:190/router.aspx", False
    xmlHttp.setRequestHeader "Content-type", "application/xml"
    xmlHttp.send strGatewayXML
    retval = xmlHttp.Status
    if retval > 199 and retval < 203 then
        Response.Status = "202 OK"
    else
        response.status = "406 Not Acceptable"
    end if

where strGatewayXML is your xml






Similar Threads
Thread Thread Starter Forum Replies Last Post
NEED HELP ABOUT THE MULTIMEDIA OCX dextergaisie Pro VB 6 0 June 18th, 2007 02:12 PM
Use of NTSVC.OCX jmtoet Pro VB 6 12 June 7th, 2005 05:00 PM
msmask.ocx ellbaktat Access VBA 0 April 22nd, 2004 08:02 AM
Use Ocx saulodet ADO.NET 0 January 5th, 2004 01:32 PM
MSFLXGRD.OCX and MSDATGRD.OCX Clive Astley Access 1 July 25th, 2003 08:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.