0

I use jQuery mobile to make a mobile form and then submit it.

On the main page I import the jQuery libraries.

<head> 
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
  <title>Waiter Menu</title>
  <link rel="stylesheet" href="js1.0/jquery.mobile-1.0.min.css" />
  <script type="text/javascript" src="js1.0/jquery-1.6.4.min.js"></script>
  <script type="text/javascript" src="js1.0/jquery.mobile-1.0.min.js"></script>
</head> 

When submit the form from the first page and linked to the second, the libraries have pre-import and I don't want that. Because at the second page I want to use custom JavaScript. Is there any way not to stop jQuery at linked file? Thanks in advance!!

---edit----

I found the solution here: How To Disable Ajax In jQuery Mobile Before Page Load?

i put this into form header

<script type="text/javascript">
  $(document).bind("mobileinit", function () {
    $.mobile.ajaxEnabled = false;
  });
</script>

and I set new header at second file!

Community
  • 1
  • 1
Mixalis
  • 309
  • 1
  • 3
  • 12

0 Answers0