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() |
Prev | Home | Next |
external.ImportExportFavorites() | Up | external.menuArguments |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |