I am trying to use the ReplaceContentInContainer method to update part of a web page. I wish to pass a php includes rather than just text.
Is this possible or is there another way around this?
- Code: Select all
<script type="text/javascript">
function ReplaceContentInContainer(id,content) {
var container = document.getElementById(id);
container.innerHTML = content;
}
</script>
<a href ="javascript:ReplaceContentInContainer('rightDiv',' <?php include('change_something.php')?>')">Change something</a>
Would be grateful for any advice.
Thanks

