Dear All,
I have Test.php and it has two functions:
<?php
echo displayInfo();
echo displayDetails();
?>
Javascript:
<html>
...
<script type="text/javascript">
$.ajax({
type:'POST',
url: 'display.php',
data:'id='+id ,
success: function(data){
$("#response").html(data);
}
});
</script>
...
<div id="response">
</div>
</html>
It returns the response from jQuery.
The response shows as <a href=Another.php?>Link</a>
When I click the Another.php link in [test.php], it loads in another window. But I need it should load same <div> </div>
area without changing the content of [test.php], since it has displayInfo(), displayDetails()
.
Or is it possible to load a PHP page inside <div> </div>
elements?
How can I tackle this problem?
Any suggestions?