Help with pages

Help with pages

Hello I have two pages, the first is multipage, and have a menu to two pages more extremos .html,  and consejos.html,My problem is that one of these is called extremos.html html, when  I using geolocation does not display the map, and when I running it as a single page this draw the map without problems, checking with the developer tools I note that clicking the link and open this page does not delete the data that functions as the index page, like javascripts,images,etc. and that is the reason because the map is not drawn, I place the link to the page as rel="external" and the  footer , moves upward through, my question is how I clear the data when I linked to another page? attach I sent to you  the code:

  1. Index.html

  2. <body>

  3.   <div data-role="page" id="home" data-theme="c">

  4.     <div data-role="header" data-theme="c">
  5.       <h1>Viajando sin papel Higienico </h1>
  6.     </div>

  7.     <div data-role="content">



  8.       <div id="logo"style="text-align: center;">
  9.             <img src="images/logo.gif" id="img-logo" width="200" alt="Logo">
  10.                 <script>
  11.               var a = alice.init();           
  12.            
  13.            a.slide(["img-logo"], "left", 0, "3000ms", "ease", "10ms", "1", "alternate", "running");
  14.                
  15.               
  16.              </script>   

  17.         
  18.       </div>

  19.       <div class="ui-grid-a"><!--cree un grid-->
  20.       <div class="ui-block-a">
  21.         <div data-role="controlgroup" data-theme="d">
  22.           <a href="consejos.html" data-role="button" >Consejos a Mochileros</a></li>
  23.           <a href="#galeria"data-role="button" >Galería</a>
  24.           <a href="#" data-role="button" >Comidas exóticas</a>
  25.           <a href="#" data-role="button" >100 cosas por hacer</a>
  26.            <a href="extremos.html" data-role="button" >Deportes extremos</a>
  27.          </div>     
+++++++++

  1. extremos.html

  2. <!DOCTYPE HTML>
  3. <head>
  4. <meta charset="<html>
  5. utf-8">
  6. <title>Extremos</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  8.  <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
  9.  <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
  10.  <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
  11.   <link href="css/vsph.css" rel="stylesheet" type="text/css" />
  12.   <style>
  13. .ui-page, .ui-body-d, .ui-body-d input, .ui-body-d select {
  14. background: url("images/arches.png") repeat;
  15. }

  16. </style>
  17. <style >
  18.         html,#geo,#geomap {height: 100%}
  19.         body {height: 100%;margin: 0;padding: 0}

  20.  </style>

  21.  
  22. </head>

  23. <body>
  24.  <div data-role="page" id="extremos" data-title="Extremos"data-add-back-btn="true" data-back-btn-text="Atrás" data-theme="c">

  25.     <div data-role="header" data-theme="c">
  26.       <h1>Encuentra tu extremo</h1>
  27.     </div>

  28.     <div data-role="content">

  29.       <div style="text-align: center;">
  30.         <div id="geo">
  31.           <button id="see_position">Usar tu ubicación</button>
  32.           <script type="text/javascript"   src="http://maps.google.com/maps/api/js?sensor=false"></script>
  33.           <p id="tracking"><span id="status"></span></p>
  34.         <div id="geo_log"></div>
  35.         <div id="geo_map"></div>        
  36.           </div>          
  37.           <script src="js/geo.js" async defer></script>
  38.           </div>

  39.           

  40.     <div data-role="footer" data-position="fixed" data-id="nav" data-theme="c">
  41.       <div data-role="navbar">
  42.         <ul>
  43.           <li><a href="index.html#home" class="ui-btn-active ui-state-persist"data-icon="home">Inicio</a></li>
  44.           <li><a href="#index.html#acerca" data-icon="info">Acerca de mi</a></li>
  45.           <li><a href="index.html#contact" data-icon="star">Contacto</a></lid        </ul>
  46.       </div>
  47.     </div>

  48.   </div>


  49. </body>