Hi All,
I have one index.php like below
.....
......
<head>
<script type="text/javascript">
ajax function to call page1, page2 etc...
</script>
</head>
<body>
<div id="leftcolumn">
<a href="javascript:ajaxpage('page1.php', 'rightcolumn');">Page1</a>
<a href="javascript:ajaxpage('page2.php', 'rightcolumn');">Page2</a>
<a href="javascript:ajaxpage('page3.php', 'rightcolumn');">Page3</a>
</div>
<div id="rightcolumn"><h3>Choose a page to load.</h3></div>
<div style="clear: left; margin-bottom: 1em"></div>
</body>
</html>
Now if page1 is calling some other page say page4 as
page1.php
......
......
<a href="javascript:ajaxpage('page4.php', 'rightcolumn');">page4</a>
.....
Here I am unable to understand how to do this as page1 does not have any div with name rightcolumn and also it does not have the ajaxpage script.
Please let me know how to do this....I hope I am clear.