What is channel.htm in contacts control?

I got everything working with contacts control upto the last "send selected" click. Then it failed,
I put a channel.htm dummy file on the host page directory, but couldn't figure out how to get contacts out of the control to receivedata method. Can someone here answer about the channel.htm file and its contents, how to get data correctly to receiveData.

thanks
chandra

[397 byte] By [mstestws] at [2008-3-3]
# 1

Hi Chandra,

Channel.htm is a message receiver file that relays messages between different-domain iframes within the browser. It is not a dummy file, you need to copy the channel.htm from http://dev.live.com/scripts/base/channel/v0.2/channel.htm to your web server. If you put the file in the same directory as your main html file, you can just put "channel.htm" in the channelEndpointURL attribute of the contactscontrol html element. If you put channel.htm somewhere else on your web server, you should update the channelEndpointURL in your main html page (or wherever it is that you're using the contacts control html element) to use the fully qualified URL to the channel.htm file on your web server.

Note: Do not use the browser to load and copy channel.htm. Channel.htm redirects to about:blank in its page load code, as part of its message passing protocol. To copy channel.htm, open the URL in Notepad, then Save As.

Hope this helps,

-Danny

DannyThorpeMSFT at 2007-9-25 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Controls Development...
# 2

This link doesn't seem to work. The v0.1 link works fine though -

http://dev.live.com/scripts/channel/v0.1/channel.htm

Best,

Vishal

VishalGhotge at 2007-9-25 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Controls Development...
# 3

And the correct link for the v0.2 channel.htm is -

http://dev.live.com/scripts/channel/v0.2/channel.htm

VishalGhotge at 2007-9-25 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Controls Development...
# 4

Woops! Sorry about the bad URL. Thanks for the correction, Vishal!

-Danny

p.s. Always use the most recent version of the API that you can. The v0.1 files are available for code that was written against them, but should not be used for new code.

DannyThorpeMSFT at 2007-9-25 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Controls Development...

Windows Live Developer Forums

Site Classified