jwplayer onIdle function

Refael
Refael used Ask the Experts™
on

Hello experts,

i am using the jwplayer in html5 for mobile devices.
i need to popup a window when the user click pause (onIdle).

i have this piece of code as an alert example on-idle
=========================================
'onIdle': function(event) {
alert('the new volume is: '+event.volume);
}
=========================================
i need to replace the alert example with a window popup.
the popup is basically an html form for the user to fill in.
any script to popup a window will be great....

only if its possible, i am using a popup script on another page and it will be great if i can integrate it
this popup script i am using in the document.ready JS
===============================================
 $("#click").bind('click', function(){
      $("#div_to_popup").bPopup({modal:false, loadUrl:'formmobile.php'});       
      return false
   });
============================================================

if there is a way to integrate it to the "'onIdle': function(event) {" great! if not, again any popup window where i can put HTML in would be great too.

thanks guys!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Systems architect
Top Expert 2006
Commented:
Create an DIV on that new page where you want to have the popup and combine the script like this:
'onIdle': function(event) {
      $("#div_to_popup").bPopup({modal:false, loadUrl:'formmobile.php'});        
      return false
} 

Open in new window

Author

Commented:
thank you!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial