Can I listen for any kind of event in splash screen using jquery or jquery mobile -


i want display splash screen in app. splash screen should disappear user event or after 5 second.

i went through articles can listen events, should specify event name there. there way can listen kind of event?

does work?

js:

function bindeventtouch(element) {     element.bind('tap taphold swipe swiperight swipeleft', function(event, ui) {        alert('event: '+event.type);      }); }  // list of events: http://api.jquery.com/category/events/ function bindevents(element) {     element.bind('click change dblclick submit', function(event) {         alert('element id: '+$(element).attr('id')+' event: '+event.type);     }); }  //bindeventtouch($('#display-event')); //bindevents($('#display-event'));  $('.displayevent').each(function(){     bindevents($(this)); }); 

html

<div data-role="page" id="home">      <div data-role="content">         <div id="display-event-1" class="add-border displayevent">             <p>tap, taphold (for 1 second), swipe, swiperight or swipeleft</p>         </div>         <br />         <div id="display-event-2" class="add-border displayevent">             <p>tap, taphold (for 1 second), swipe, swiperight or swipeleft</p>         </div>         <br />         <div id="display-event-3" class="add-border displayevent">             <p>tap, taphold (for 1 second), swipe, swiperight or swipeleft</p>         </div>     </div> </div>​ 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -