I am trying to trigger an event using jQuery mobile that automatically reloads the page when the device orientation changes. I have media queries written using max-device-width, orientation:landscape, and orientation: portrait . Since <video> will not scale properly ... the only solution I can think of is to refresh the page to the correct media request when the device is rotated.
How can I do it? Thanks.
html5 jquery-mobile mobile media-queries
David berning
source share