Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
I'd rather take another way....
Make your popup standalone, and let him poll a db, or a PHP/ASP page via ajax calls to verify his playlist content.
That way:
1) the user click a link to add a song => a php/asp script save it in the session.
No messing through several windows.
2) In the mean time, have a polling interface made, that will record that an additional song has been added, and while it's not have been asked by the player, stay in a "to be read" status.
3) Make the player window ask the interface every 2 or 3 seconds for updates (the "to be read" messages) Make the polling interface add a meaningful message (via json, for example) that the return ajax function will be able to parse, and let that function do the update of the playlist from the player window directly.
That way, you will avoid every pitfall you might have with window handler visibility.
It may looks like a lot, but it's not that hard.
__________________
Only a biker knows why a dog sticks his head out the window.
|