TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 446
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 191
  • Total: 192
  • lurkalot

Auto close Popup on main site closure

Started by plumfine, July 27, 2009, 06:52:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

plumfine

I have a popup player on my site and it works great but my question is when someone leaves the site the player is still open.  Does anyone know the code to put into the javascript to close the player when you leave the site? 

I'm using a new updated version of wimpy player.  The older version did close when you left the site and I can't find the old coding and support for wimpy won't answer this question....I've tried several times to get a response from them.

Zetan

plumfine, Wimpy's support is rubbish, I know.. I have Wimpy Rave on my site and I've never had a reply to any of my emails, disgusting really when you PAY for a product, yet a FREE product, like TP has great support.

Sorry, no idea what the Javascript for closing the player on exit is. I'd be interested if you do find out.

ZarPrime

I don't have time right now to investigate any of these links, but something on the following pages may be helpful ...
Let me google that for you!

if nothing works there, you may want to have a look here instead ...
Let me google that for you!

Let us know if you find anything useful.

ZarPrime

Zetan

Timed closure isn't what plumfine is referring to. Closure of the Popup when the main site is closed, is.

Let me refer you to the Wimpy Documentation:

http://www.wimpyplayer.com/customize/customize_popup.html

http://www.wimpyplayer.com/docs/rave/customizer.options.html

http://www.wimpyplayer.com/support/index.html

None of which mention anything to do with Popup Closure on site closure. I have never seen this option mentioned before, not to say it doesn't exist.


Zetan

I've split this into a new topic as it's related, but an entirely different question.


mc

You'll need to look into the DOM (Document Object Module) to see how child windows are handled and fit into the DOM structure.
Once you've identified how the child window fits into the DOM, you can then use javascript to manipulate the child window.

I've touched on it briefly, but can't remember the ins and outs of it, however I seem to remember IE and FF treat the parent/child relationship slightly differently, and require additional coding to work around it.

Zetan

plumfine, please use the code tags when posting code:



<insert code here>




You can either use:

[code ]

<insert code here>

[/code ]

No spaces, or paste the code, highlight it all and hit the # from the BBC buttons. You probably already know this.




I have to say it again... Popup windows can be a real pain in ze rear!

This website is proudly hosted on Crocweb Cloud Website Hosting.