-
AuthorPosts
-
November 1, 2008 at 6:47 pm #134985
Hi guys,
I’m having a problem viewing the site that I’m working on right now in IE. I’ve made a lot of modifications in the index file as below. Some of the page can be viewed with error of ‘null’ is null or not an object and some of the page cannot be viewed at all which end up with an error window of operation aborted.I’ve been searching around googling about the error and my conclusion is it has something wrong with the javascript in the index file that I’ve made modification.
I really appreciate if anybody can help me out with something in order to figure out the solutions. Thanks in advance
[PHP]
<?php
/**
* @copyright Copyright (C) 2005 – 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );include_once (dirname(__FILE__).DS.’ja_vars_1.5.php’);
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>”>
<head>
<jdoc:include type=”head” />
<?php JHTML::_(‘behavior.mootools’); ?><link rel=”stylesheet” href=”<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/editor.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/template.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/typo.css” type=”text/css” /><script language=”javascript” type=”text/javascript” src=”<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js”></script>
<!– Menu head –>
<?php $jamenu->genMenuHead(); ?><link href=”<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $tmpTools->getParam(JA_TOOL_COLOR); ?>.css” rel=”stylesheet” type=”text/css” />
<!–>
<style type=”text/css”>
.clearfix {height: 1%;}
img {border: none;}
</style>
<!–><!–>
<style type=”text/css”>
.clearfix {display: inline-block;}
</style>
<!–><?php if ($tmpTools->isIE6()) { ?>
<!–>
<script type=”text/javascript”>
var siteurl = ‘<?php echo $tmpTools->baseurl();?>’;
</script>
<!–>
<?php } ?>
</head><body id=”bd” class=”<?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>” >
<a name=”Top” id=”Top”></a>
<ul class=”accessibility”>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-mainnav” title=”<?php echo JText::_(“Skip to main navigation”);?>”><?php echo JText::_(“Skip to main navigation”);?></a></li>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-col1″ title=”<?php echo JText::_(“Skip to 1st column”);?>”><?php echo JText::_(“Skip to 1st column”);?></a></li>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-col2″ title=”<?php echo JText::_(“Skip to 2nd column”);?>”><?php echo JText::_(“Skip to 2nd column”);?></a></li>
</ul><div id=”ja-wrapper”>
<!– BEGIN: HEADER –>
<div id=”ja-header” class=”clearfix”><?php
$siteName = $tmpTools->sitename();
if ($tmpTools->getParam(‘logoType’)==’image’) { ?>
<h1 class=”logo”>
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
</h1>
<?php } else {
$logoText = (trim($tmpTools->getParam(‘logoText’))==”) ? $config->sitename : $tmpTools->getParam(‘logoText’);
$sloganText = (trim($tmpTools->getParam(‘sloganText’))==”) ? JText::_(‘SITE SLOGAN’) : $tmpTools->getParam(‘sloganText’); ?>
<h1 class=”logo-text”>
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a>
</h1>
<p class=”site-slogan”><?php echo $sloganText;?></p>
<?php } ?><?php if ($this->countModules(‘top’)) { ?>
<div id=”ja-login”>
<jdoc:include type=”modules” name=”top” style=”raw” />
</div>
<?php } ?></div>
<!– END: HEADER –><div id=”ja-containerwrap<?php echo $divid; ?>”>
<div id=”ja-container”>
<div id=”ja-container2″ class=”clearfix”><div id=”ja-mainbody” class=”clearfix”>
<!– BEGIN: CONTENT –>
<div id=”ja-content” class=”clearfix”><jdoc:include type=”message” />
<!– BEGIN: MAIN NAVIGATION –>
<div id=”ja-mainnavwrap”><div id=”ja-mainnav”>
<?php $jamenu->genMenu (0); ?>
</div></div>
<?php if ($hasSubnav) { ?>
<div id=”ja-subnav” class=”clearfix”>
<?php $jamenu->genMenu (1,1); ?>
</div>
<?php } ?>
<!– END: MAIN NAVIGATION –><!– BEGIN: SLIDESHOW –>
<?php if($this->countModules(‘slideshow’)) : ?>
<div id=”ja-slideshow”>
<jdoc:include type=”modules” name=”slideshow” />
</div>
<?php endif; ?>
<!– END: SLIDESHOW –><!– BEGIN: CONTENT HEADER –>
<?php if($this->countModules(‘contentheader’)) : ?>
<div id=”ja-contentheader”>
<jdoc:include type=”modules” name=”contentheader” />
</div>
<?php endif; ?>
<!– END: CONTENT HEADER –><div id=”ja-current-content” class=”clearfix”>
<jdoc:include type=”component” />
<?php if($this->countModules(‘banner’)) : ?>
<!– BEGIN: BANNER –>
<div id=”ja-banner”>
<jdoc:include type=”modules” name=”banner” />
</div>
<!– END: BANNER –>
<?php endif; ?></div>
<!– BEGIN: NEWS HEADER –>
<?php if($this->countModules(‘newsheader’)) : ?>
<div id=”ja-newsheader”>
<jdoc:include type=”modules” name=”newsheader” />
</div>
<?php endif; ?>
<!– END: NEWS HEADER –><!– BEGIN: KSN MEDIA –>
<?php if($this->countModules(‘ksnmedia’)) : ?>
<div id=”ja-ksnmedia”>
<jdoc:include type=”modules” name=”ksnmedia” />
</div>
<?php endif; ?>
<!– END: KSN MEDIA –></div>
<!– END: CONTENT –><?php if ($ja_right) { ?>
<!– BEGIN: RIGHT COLUMN –>
<div id=”ja-col2″>
<jdoc:include type=”modules” name=”right” style=”xhtml” />
</div><br />
<!– END: RIGHT COLUMN –>
<?php } ?></div>
<?php if ($ja_left) { ?>
<!– BEGIN: LEFT COLUMN –>
<div id=”ja-col1″>
<jdoc:include type=”modules” name=”left” style=”xhtml” />
<!– BEGIN: TOP LEFT PANEL –>
<?php if($this->countModules(‘topleftpanel’)) : ?>
<div id=”ja-topleftpanel”>
<jdoc:include type=”modules” name=”topleftpanel” />
</div>
<?php endif; ?>
<!– END: TOP LEFT PANEL –>
</div>
<!– END: LEFT COLUMN –>
<?php } ?></div></div></div>
<?php
$spotlight = array (‘user1′,’user2′,’user5′,’user6′,’user7′,’user8’);
$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
if( $botsl ) {
?>
<!– BEGIN: BOTTOM SPOTLIGHT –>
<div id=”ja-botsl” class=”clearfix”><?php if( $this->countModules(‘user1’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user1’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user1’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user1″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user2’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user2’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user2’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user2″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user5’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user5’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user5’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user5″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user6’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user6’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user6’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user6″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user7’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user7’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user7’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user7″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user8’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user8’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user8’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user8″ style=”xhtml” />
</div>
<?php } ?></div>
<!– END: BOTTOM SPOTLIGHT –>
<?php } ?><!– BEGIN: FOOTER –>
<div id=”ja-footer” class=”clearfix”><jdoc:include type=”modules” name=”user3″ />
<jdoc:include type=”modules” name=”footer” /></div>
<!– END: FOOTER –></div>
<jdoc:include type=”modules” name=”debug” />
</body>
</html>
[/PHP]
-
AuthorPosts
This topic contains 1 reply, has 1 voice, and was last updated by marciello 16 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum