test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • timhomewood Friend
    #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 object

    Any thoughts on this?

    thanks,

    Tim

    Menalto Friend
    #243602

    Have you done any modifications to the template? This error should not be there unless you have removed or renamed the ja-botsl div?

    timhomewood Friend
    #243735

    Hi 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 Friend
    #243738

    What do you have right above this:
    <!-- BEGIN: BOTTOM SPOTLIGHT -->
    Do you also have a live url?

    timhomewood Friend
    #243744

    The 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 Friend
    #243844

    Dear 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>

    timhomewood Friend
    #243897

    Thanks Le Hoai, the code was slightly different but the change did the job 🙂

    jaInit = function() {
    hackReadon();
    addSpanToTitle();
    //equalHeight();
    jaToolsHover ();
    jaHackInputBox();
    }

Viewing 7 posts - 1 through 7 (of 7 total)

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