Tuesday, 11 August 2015

jQuery Mobile: Events


Orientation events:

  • At times a user will change the orientation of device when using an application, which could happen as a result of general movement of the device.
  • Orientation events are triggered when you rotate the mobile device vertically or horizontally i.e. change your mobile device orientation.

Example:

$(window).on("orientationchange", function(event){
      alert("Orientation Change");
});



No comments:

Post a Comment

Loading spinner overlay for hybrid/mobile web applications

Below is the spinner I have implemented in one of my projects. Below are the components you need to place in your respective Javascript, Cs...