Not logged in. · Lost password · Register
Forum: Features request RSS
Return a 1 or a 0 if songs in playlist or not?
Return value to webpage
SRG1 #1
Member since Aug 2004 · 1 post
Group memberships: Members
Show profile · Link to this post
Is there a way (any way) to use a BrowseAmp function to return some value like "1" to a page if there are songs in WinAmps playlist and some value like "0" if there is not?  I am working on having a page load in the browser using javascript if there are no songs left in the playlist.  The javascipt would know whether to load the new page or not by the returned value from BrowseAmp......for example if a BrowseAmp function returned a "1" to the Javascript the new page would not load because songs would still exist in the playlist.  If BrowseAmp returned a "0" to the javascript then the page would load because no songs would exist in the playlist!  Is there a way to do this??

Thanks for your time and support for such a great product!!!
I'll be sending a check soon!

Greg B
Henry (Administrator) #2
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You can use the <#playlist_numtracks> tag to make BrowseAmp insert the number of tracks in the current playlist. That's easy isn't it?  ;)
Guest_SRG1 (Guest) #3
No profile available.
Link to this post
Perfect! Thanks a bunch!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 122.8 ms (64.9 ms) · 45 database queries in 61.4 ms
Current time: 2020-02-18, 01:35:46 (UTC +00:00)