call a php page using jquery and ajax get

call a php page using jquery and ajax get

Hi guys,

I need help here... I have this problem how to call a php page (that's updateDB.php) using jquery and ajax... I have my code here:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FANCY EDIT-ON-PLACE</title>
<style>
.input {
   color: #f00;
   background: #00CCCC;
   width: 400px;
}
div button{
   color: #f0f;
}
.style1 {color: black}
.style2 {color: #FFFF00}
</style>

<script type="text/javascript" src="ajax.js"></script>
<script language="javascript" type="text/javascript" src="jquery-1.2.6.min.js"></script>
<script language="javascript" type="text/javascript" src="editable-1.1.0-extended.js"></script>
<script>
function mouseover()
{
document.getElementById("thediv").style.backgroundColor='blue';
}
function mouseout()
{
document.getElementById("thediv").style.backgroundColor='white';
}


$(function(){
   //#
   function begin(){
      this.append('Double Click to submit');
   }
   
   function end(content){
   //what I should do is to have a code to update the database with the content.current
      
      alert(content.current)
      $.get("updateDB.php");

   }
   $('div.editable').editable({
                  onSubmit:end
                  });
   
                     
});
</script>
</head>
<body bgcolor="white">
   <div class="editable style1"  id=thediv onmouseover="mouseover()" onmouseout="mouseout()" >click me to edit</div>
</body>
</html>