Avatar of Refael
Refael
Flag for United States of America asked on

jwplayer onIdle function


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!
JavaScript

Avatar of undefined
Last Comment
Refael

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Zvonko

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Refael

ASKER
thank you!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck