-
AuthorPosts
-
March 30, 2008 at 5:22 am #127076
First, the rave
I’ve tried quite a few JA templates over the last couple of months. I’m developing a site for the contemporary dance community who are reasonably choosy (to put it mildly) about the visuals. It would not be an exaggeration to say that this template has finally allowed the site to be launched as everyone loves it.
You’ve finally put the Art into Joomla. 😀
Second, the question
I am receiving a JavaScript error when using this template.
FF says:
$(“ja-botsl”) has no properties
equalHeight()ja.script.js (line 58)
jaInit()ja.script.js (line 246)
[Break on this error] makeEqualHeight ($(‘ja-botsl’).getChildren());IE7 says:
line: 59
char: 2
error: null is ‘null’ or not an objectAny thoughts on this?
thanks,
Tim
Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
March 30, 2008 at 8:36 am #243602Have you done any modifications to the template? This error should not be there unless you have removed or renamed the ja-botsl div?
March 31, 2008 at 10:03 am #243735Hi Menalto,
I have made some minor alterations – widened the right column and tried to move the copyright footer around a little. However haven’t touched the div. Below is the current code in index.php. The site is viewable at http://www.contemporarydance.com.au/cms/
<!-- BEGIN: BOTTOM SPOTLIGHT -->
<div id="ja-botslwrap">
<div id="ja-botsl" class="clearfix"><?php if( mosCountModules('user1') ) { ?>
<div class="ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;">
<?php mosLoadModules('user1', -2); ?>
</div>
<?php } ?><?php if( mosCountModules('user2') ) { ?>
<div class="ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;">
<?php mosLoadModules('user2', -2); ?>
</div>
<?php } ?><?php if( mosCountModules('user5') ) {?>
<div class="ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;">
<?php mosLoadModules('user5', -2); ?>
</div>
<?php } ?><?php if( mosCountModules('user6') ) {?>
<div class="ja-box<?php echo $botsl['user6']['class']; ?>" style="width: <?php echo $botsl['user6']['width']; ?>;">
<?php mosLoadModules('user6', -2); ?>
</div>
<?php } ?><?php if( mosCountModules('user7') ) {?>
<div class="ja-box<?php echo $botsl['user7']['class']; ?>" style="width: <?php echo $botsl['user7']['width']; ?>;">
<?php mosLoadModules('user7', -2); ?>
</div>
<?php } ?><?php if( mosCountModules('user8') ) {?>
<div class="ja-box<?php echo $botsl['user8']['class']; ?>" style="width: <?php echo $botsl['user8']['width']; ?>;">
<?php mosLoadModules('user8', -2); ?>
</div>
<?php } ?></div>
</div>
<!-- END: BOTTOM SPOTLIGHT -->Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
March 31, 2008 at 10:16 am #243738What do you have right above this:
<!-- BEGIN: BOTTOM SPOTLIGHT -->
Do you also have a live url?March 31, 2008 at 11:57 am #243744The URL above is the only one at the moment. We’re ironing out a few bugs before going live.
The code is:
<?php
$spotlight = array ('user1','user2','user5','user6','user7','user8');
$botsl = $tmpTools->calSpotlight ($spotlight,99.9);
if( $botsl ) {
?>lehoai Friendlehoai
- Join date:
- January 2007
- Posts:
- 158
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 7 times in 7 posts
April 1, 2008 at 3:36 am #243844Dear timhomewood,
This error is you removed the ja-botsl class. because you don’t want to use equal height module. So to fix this problem you shoult go to templates/ja_dravity/js/ja.script.js and go to line 246 search this line<blockquote>window.addEvent (‘load’, function() {
hackReadon();
addSpanToTitle();
equalHeight();
jaToolsHover ();
jaHackInputBox();
});
</blockquote>and change to this
<blockquote>window.addEvent (‘load’, function() {
hackReadon();
addSpanToTitle();
//equalHeight();
jaToolsHover ();
jaHackInputBox();
});
</blockquote>April 1, 2008 at 9:14 am #243897Thanks Le Hoai, the code was slightly different but the change did the job 🙂
jaInit = function() {
hackReadon();
addSpanToTitle();
//equalHeight();
jaToolsHover ();
jaHackInputBox();
} -
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by timhomewood 16 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum