Asp.net based JQuery Mobile - basic login form is not working

Asp.net based JQuery Mobile - basic login form is not working

Hi all

i'm just getting used to using jquery and thought I'll try a very simple example

I'm going to be building this on asp.net web forms (will move to MVC in the future but not right now)


i have a very simple html form but it does not simple to be working

the code is below

  1. <!DOCTYPE html> 
  2. <html>
  3. <head>
  4.     <title>Test</title>
  5. <link rel="Stylesheet" href="Assets/jquery.mobile-1.0a3.min.css" />
  6. <script src="Assets/jquery-1.5.min.js"></script>
  7. <script src="Assets/jquery.mobile-1.0a3.min.js" ></script>


  8. </head>
  9. <body>
  10. <div data-role="page">

  11. <!-- start header -->
  12. <div data-role="header">
  13. <h1>Login</h1>
  14. <a href="/" class="ui-btn-right">Cancel</a>
  15. </div>
  16. <!-- end header -->

  17. <div data-role="content" data-inset="true">

  18.        <form action="/Default.aspx" method="POST">
  19.            <fieldset>
  20.            
  21.            
  22.            <label for="email">Email:</label>
  23.            <input type="email" name="email" id="email" value=""  />

  24.            <label for="password">Password:</label>
  25.            <input type="password" name="password" id="password" value="" />

  26.                <input id="Submit1" type="submit" value="Login" data-role="button" data-inline="true" data-theme="b" />

  27.            <hr />
  28.            Don't have a login? <a href="register.aspx">Sign Up</a>
  29.            </fieldset>
  30.        </form>
  31.        
  32. </div>

  33. </div>


  34. </body>
  35. </html>

As you can see its very simple

if i put any external url in the action the page seems to work (i.e it goes to the external page)

if i put any internal page (i.e index.htm) i get either

Error Loading Page
or just a continuous Loading image

anyone got any ideas why this is happening :-(