Hi:

I create an iframe in script and load it with this code.

Code:
<script type="text/javascript">
var d;

function callSave() {
 alert ('calling');
 if (d) document.body.removeChild(d);
 d = document.createElement("iframe");
 //d.setAttribute('src', 'savepages.php');
 d.setAttribute('style', 'visibility: visible');
 d.src = "savepages.php";
 //d.type = "iframe";
 document.body.appendChild(d);
}

</script>
This should force the loading of the savepages.php file. In that file I do an echo to verify that it is called.

Code:
<?php
echo "from the savepages php"; 
?>
The objective is to call that php function. The javascript function is called. I don't know if the element is actually created. Unlike php javascript doesn't put anything in the source for us to verify.

I don't have ajax. How can I make the javascript function call create an element that loads the php file and causes the code in that php file to execute.