The QlikView ZFC client (including the FruitColor sample) works in a slightly different way to the OCX API you are probably used to using in the .NET version of your app.
The API obviously works by calling methods on the interface when you need something back or need to update something.
With the ZFC client you register the objects in the QlikView document you are 'interested in' and then each time their state changes you get back the new data in an xml response.
If you need to communicate with the API as in your current application then it should also be possible to do this from your web page although I don't have any sample code to post here at present.
Registering event handlers on Objects in QlikView document might be one of the ways (need to explore this further), But I am specifically looking at a solution that can capture the current state of QlikView document on an external event, like on click of a button in the host html page.
Thanks in advance,
PS: Pardon my shallow knowledge of QlikView, I am just getting started.
you can have a look at http://community.qlik.com/forums/p/19549/80264.aspx where i explained what i knew about calling standard API methods using the qvpx protocol
also, are you really interested in the value of the current selection, or do you just want to know if it is different from another selection made before ?
retrieving the key value pairs can be very time consuming when they contain a lot of values, and i guess doing it over a network should be even longer. In my project i don't need to know what the exact selection is, i just have to be notified when it changes, so I only evaluate the expression "hash128(GetCurrentSelections('', '', '', 100000))" which is really faster and compare it to the last selection hash code i got