Advertisement
raklil01

Div Dynamic loading

Aug 10th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html lang="en-us">
  4.         <head>
  5.  
  6.             <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css"/>
  7.             <meta charset="utf-8">
  8.                         <meta name="apple-mobile-web-app-capable" content="yes"/>
  9.                         <meta name="-webkit-user-select:none"/>
  10.             <meta name="viewpoint" content="width=device-width">
  11.             <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
  12.             <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>
  13.             <title>'Nova Teachers</title>
  14.             <script type="text/javascript">
  15.                 $(document).ready(function(){
  16.                     $('#A').click(function(){
  17.                         $('<div id="#180336"/>').hide().appendTo("body").toggle();
  18.                     });
  19.                 });
  20.             </script>
  21.  
  22.  
  23.         </head>
  24.         <body>
  25.             <div data-role="page" id="homepage">
  26.             <!-- Page one, lists by letter -->
  27.                 <div data-role="header" data-theme="a">
  28.                     <h1> Teachers</h1>
  29.                 </div>
  30.                 <div data-role="content">
  31.                     <ul data-role="listview" data-theme="a">
  32.                         <li><h1>Search for professors by last name</h1></li>
  33.                         <li><a href="#A">A</a></li>
  34.                     </ul>
  35.                 </div> 
  36.             </div>
  37.            
  38.             <div data-role="page" id="A">
  39.                 <div data-role="header" data-theme="a">
  40.                     <h1> Teachers : A's</h1>
  41.                 </div>
  42.                 <div data-role="content">
  43.                     <ul data-role="listview" data-theme="a" >
  44.                         <li><a href="180336">Aagaard, Todd S.</a></li>
  45.                     </ul>
  46.                 </div>
  47.             </div>
  48.  
  49.            
  50.             <div data-role="page" id="180336" >
  51.             <!--Teacher review. id corresponds to a teacher-->
  52.                 <div data-role="header">
  53.                     <h1>Aagaard, Todd S.</h1>
  54.                 </div>
  55.                 <div data-role="content">
  56.                 </div>
  57.             </div>
  58.            
  59.         </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement