I have a very simple jQuery mobile app. When the user clicks the "Settings" button, I want to redirect them to another page that requests them for their email address. I want a nice slide transition between two pages. However, there seems to be a compromise.
Basically, if I have 'rel = "external" in my settings button, as shown below, the user will be transferred to the next screen. However, there is no transition. But if I remove 'rel = "external", I get a transition, but there is a small red bar at the top of the next screen. This red bar is obviously my div. Its like a .hide code is not called.
In this type of situation, how should I call functions like .hide? I clearly want to hide the errMsg source code. But I'm not sure how to do this, while maintaining the good transitions highlighted by JQuery Mobile.
home.html
<div data-role="page"> <div data-role="header"><h1>My App</h1></div> <div data-role="content"> <div><a href="/setup" rel="external" data-role="button">Setup</a></div> </div> </div>
setup.html
<div data-role="page"> <div data-role="header"><h1>Setup</h1></div> <div data-role="content"> <div id="errorMsg" style="background-color:red; padding:2px 0px 2px 8px; margin-bottom:6px;"></div> <label for="emailTextBox">Email Address</label> <input id="emailTextBox" type="email" /><br /> </div> </div> <script type="text/javascript"> $(document).ready(function () { $("#errorMsg").hide(); }); </script>
Thanks for any help / ideas you can provide.
source share