Difference between revisions of "Team:Greece/home"

Line 1: Line 1:
 
<html>
 
<html>
<head>
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
 
<script>
 
$(document).ready(function(){
 
    $("button").click(function(){
 
        $.ajax({url: "Project", success: function(result){
 
            $("#div1").html(result);
 
        }, async: true, dataType: 'text/html'});
 
    });
 
});
 
</script>
 
</head>
 
 
<body>
 
<body>
 +
<script>
 +
 +
$('#mydiv').get('2017.igem.org/Team:Greece/Project');
 +
 +
</script
  
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
+
<div id='mydiv'></div>
  
<button>Get External Content</button>
+
<style>#mydiv{ position:fixed; height:100%; width:100%; }</style>
  
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 17:08, 29 August 2017