Not sure why it has taken this long to get back to this.... Sorry
RE: Problem 1
Header Code (located in a subdirectory)
Code:
<head>
<meta http-equiv="Content-Language" content="<?=META_HTTP_LANG?>">
<meta http-equiv="PRAGMA" content="NO-CACHE">
<meta http-equiv="EXPIRES" content="-1">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="description" content="<?=META_DESC?>">
<meta name="keywords" content="<?=META_KEYWORDS?>">
<title><?=META_HTTP_TITLE?></title>
<link rel="shortcut icon" href="/favicon.ico">
<link type="text/css" rel="stylesheet" href="<?=$bkgnd_path?>style.css">
<? #----- JavaScript Routines -----# ?>
<? if($user_java == TRUE){ ?>
<? include_once($_SERVER["DOCUMENT_ROOT"].'/user.javascript.php'); ?>
<? } ?> The last two lines convert out to:
Code:
$_SERVER["DOCUMENT_ROOT/inc/js/ajax.js
The code works fine in the index page, where all the calls in function loadData() are used, but creates the
JS error message on other pages where the functions are not used!
RE: Problem 2
function displayTimeInt() Code:
function displayTimeInt() {
displayTime(1,'disTime');
/*displayTime(1,'disTime2'); ??*/
setInterval("displayTime(1,'disTime')",1000);
/*setInterval("displayTime(1,'disTime2')",1000); ??*/
} Not sure if that is what you ment about different IDs
RE: Problem 3
subdirectory paths
When the header file is being included in a subdirectory it must be loosing the correct path!
Since, I have basically no
JS/Ajax programming, I am amazed that all of the functions work as expected! Well except for the problem mentioned previously! I am going to become 'oop' minded if it kills me.
Thanks...