
Originally Posted by
blm126
Yes, PHP calls will get executed if the extention is .php(or whatever your PHP extension is)
I wouldn't have thought that possible but, it worked in a trial I just completed. To be clear, the external file is the one that needs the PHP server extension.
I was able to retrieve the current values of this page:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
print "Remote: " . $_SERVER["REMOTE_ADDR"] . "<br>";
print date("F d, Y H:i:s", time());
?>
</body>
</html>
Which I called remote.php when used with Ajax Tabs, like so:
Code:
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>
<li><a href="remote.php" rel="ajaxcontentarea">Bird</a></li>
<li><a href="external2.htm" rel="ajaxcontentarea">Dog</a></li>
<li><a href="external3.htm" rel="ajaxcontentarea">Cat</a></li>
<li><a href="external4.htm" rel="ajaxcontentarea">Sea Otter</a></li>
</ul>
Slipped it right into the demo.
Bookmarks