jquery mobile - Jquerymobile. define a transition between pages -


since of pages in same tag "body", after leaving page audio, player continues play. how can catch user has left page , stop audio?

check if current page not page playing audio , handle accordingly.you can use below code know current page.

var activepage = $('.ui-page-active').attr('id'); if (activepage != "your-audio-page-id") { } 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -