Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 07-05-2008, 10:28 AM Detect popup window
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
Hello,

I hope you guys can help me since i did a lot of googling and couldnt find anything .

I am trying to make a music player open in a new window, i got this part right ... but now i want that when you navigate in the parent window to a new location ... and click add to a music file to append a javascript code in the pop-up HTML to add the new song ... withought reloading the pop-up since that would stop the player ...

I managed to do a code to detect the pop-up ... but if the opener is in the same location ... as soon as i navigate to another location in the opener ... it fails to detect the pop-up.

Thanks a lot.
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
 
Register now for full access!
Old 07-05-2008, 10:56 AM Re: Detect popup window
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 07-07-2008, 09:35 AM Re: Detect popup window
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
thanks for your advice
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Reply     « Reply to Detect popup window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23192 seconds with 12 queries