Here is the code. I have also tried this using the $.post method rather than the $.ajax method with identical results.
function posthtml() {
$.ajax({
type: "POST",
url: "response.php",
data: "pagehtml=" + encodeURIComponent
(innerHTML=document.getElementById('main').innerHTML),
success: function(html){
$("#response").html(html);
}
});
}
For the purposes of testing, I have been calling this PHP script:
<?
echo "response";
?>
Thanks again,
mitchmaster

