external.IsSubscribed() (Method)

Channel handling support is provided by this enquiry that determines whether the channel is registered.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Property/method value type:Boolean primitive
JavaScript syntax:IEmyExternal.IsSubscribed(aURL)
Argument list:aURLThe URL for a CDF file

You might want to enhance the script that adds channels by checking first to see if the user has already subscribed to a channel. That way you can avoid asking them the same question every time they enter the page that gives them access to the channel.

This query method returns a Boolean value true if the client is already subscribed and false if not.

The argument would be the same URL value that is used in the addChannel() method.

See also:external.AddChannel()