Issues with photoswipe and Ajax

Issues with photoswipe and Ajax

The following is code of my page. The Colorbox Functionality works if i test the page individually but breaks down on the device.Basically its an multi tabbed page and the present tab holds the image.

Can anybody please let me know why?
  1. <!DOCTYPE html>

  2. <html >
  3.     <head>
  4.         <title>
  5.             Temp1
  6.         </title>
  7.         <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-rc.2/jquery.mobile-1.2.0-rc.2.min.css" />
  8. <script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
  9. <script src="http://code.jquery.com/mobile/1.2.0-rc.2/jquery.mobile-1.2.0-rc.2.min.js"></script>
  10.                     
  11.             <script src="js/lightbox.js"></script>
  12.             <link href="css/lightbox.css" rel="stylesheet" />
  13.         
  14.     </head>



  15. <body>

  16. <div data-role="page" data-add-back-btn="true">
  17.      
  18.     <div data-role="header" data-position="fixed" data-id="headernav">
  19.             <h1>Temp Heading</h1>  
  20.              <a href="index.html" class="ui-btn-left" data-icon="home">Home</a>


  21.             <div data-role="navbar">
  22.                <ul>
  23.                     <li>
  24.                         <a href="TempDescription.html" data-transition="slide" ><b>Temp Description</b></a>
  25.                     </li>
  26.                     <li>
  27.                         <a href="Tempillustration.html" data-transition="slide" class="ui-btn-active ui-state-persist" ><b>Temp Illustration</b></a>
  28.                     </li>
  29.                     <li>
  30.                         <a href="Equipment.html" data-transition="slide"><b>Equipment</b></a>
  31.                     </li>
  32.                     <li>
  33.                         <a href="Indications.html" data-transition="slide" ><b>Indications</b></a>
  34.                     </li>                  
  35.                       <li>
  36.                         <a href="TempComplications.html" data-transition="slide" ><b>Temp Complications</b></a>
  37.                     </li>
  38.                     
  39.                     
  40.                     
  41.                 </ul>
  42.             </div>
  43.         </div>
  44.     
  45.      <div data-role="content" id="webdev">
  46.          <img src="Picture1.jpg" />
  47.         <!-- <div id="demo-yl-ca">
  48.    <a href="images/Step1.jpg" rel="lightbox[roadtrip]" title="my caption1"><img src="images/thumb/Step1.jpg" width="150" height="150" alt="Plants: image 1 0f 4 thumb" /></a>
  49.     <a href="images/Step2.jpg" rel="lightbox[roadtrip]" title="my caption2"><img src="images/thumb/Step2.jpg" width="150" height="150" alt="Plants: image 1 0f 4 thumb" /></a>
  50.     <a href="images/Step3.jpg" rel="lightbox[roadtrip]" title="my caption3"><img src="images/thumb/Step3.jpg" width="150" height="150" alt="Plants: image 1 0f 4 thumb" /></a>
  51.     <a href="images/Step4.jpg" rel="lightbox[roadtrip]" title="my caption4"><img src="images/thumb/Step4.jpg" width="150" height="150" alt="Plants: image 1 0f 4 thumb" /></a>
  52.    </div>
  53.               <div data-role="popup" id="demo-yl-de" data-overlay-theme="a" data-theme="d" data-tolerance="15,15" class="ui-content">

  54.     <iframe src="http://player.vimeo.com/video/41135183" width="497" height="298" seamless ></iframe>
  55. </div> -->
  56. </div>

  57. <div data-role="footer" data-position="fixed" data-id="footernav">
  58.                
  59.            <p>Footer</p>
  60. </div>
  61.     </div>
  62.    
  63.             </body>
  64.     
  65.     
  66.     <!--<script>
  67.         $("body").append(html)
  68.     </script>-->

  69. </html>