test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • boulet Friend
    #132046

    Hello,

    I am using Joomla 1.0.13 with Edenite template on this website:

    http://www.scolaridee.fr

    I have an issue with the function MakeEqualHeight (line 57 in ja.edenite.js file). An error message (Expected Object) appears in any page where the JASlideShow Module is not published.

    Any help?

    function equalHeight(){
    makeEqualHeight ($('ja-botsl').getChildren());
    makeEqualHeight ($$(['ja-content','ja-col1-bot','ja-col2']));
    }

    function makeEqualHeight(divs) {
    if(!divs || divs.length < 2) return;
    var maxh = 0;
    divs.each(function(el, i){
    var ch = el.getCoordinates().height;
    maxh = (maxh < ch) ? ch : maxh;
    },this);
    divs.each(function(el, i){
    el.setStyle('height', maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());
    },this);
    }

    Cheers.

    Sherlock Friend
    #265236

    Plz send link where has that error

    boulet Friend
    #265465

    There it goes:
    Example

    (Tested with IE 6.0)

    Thanks

    iainmac Friend
    #265845

    I’m getting a javascript error coming from an included script file “ja.script.js” – at the following statement:

    function equalHeight(){

    makeEqualHeight ($(‘ja-botsl’).getChildren()); // error: Microsoft JScript runtime error: ‘null’ is null or not an object

    makeEqualHeight ($$([‘ja-content’,’ja-col1-bot’,’ja-col2′]));

    }

    boulet Friend
    #268792

    Any ideas here? :confused:

    Sherlock Friend
    #268820

    Hi
    you can read HERE

    boulet Friend
    #271215

    Thanks!
    I made the changes suggested but I keep getting the same problem 🙁

    Sherlock Friend
    #271260

    Hi,
    Can you please PM me your site admin account as well as FPT account? Without investigating into the codes, I am afraid that we can not provide any solution

    Sherlock Friend
    #271261

    Hi,
    Can you please PM me your site admin account as well as FPT account? Without investigating into the codes, I am afraid that we can not provide any solution

    DeanMarshall Friend
    #271977

    I know nothing about mootools – but do know a little about jQuery.
    I took a quick look at the 30 days of MooTools site and it appears to my untrained eye that there is an error in the selectors in the file.

    http://www.consideropen.com/blog/2008/08/30-days-of-mootools-12-tutorials-day-2-selectors/

    This looks wrong.


    makeEqualHeight ($$(['ja-content','ja-col1-bot','ja-col2']));

    a) The square brackets aren’t required for specifying a bunch of different elements.
    b) I can’t find ja-col1-bot in my site’s html – so it can’t be selected.
    c) When selecting by an element’s id a # should prefix the name – otherwise it implies a html tag (such as div)

    This looks more correct – and doesn’t produce an error.
    I’ve no idea if it is actually working though.


    makeEqualHeight ( $$('#ja-content','#ja-col1','#ja-col2') );

    Hope it helps – or at least point someone in the direction of a fix.
    Of course it could just be that I don’t know what I’m looking at – I have been wrong before – the last time was 1973 and I was 5 😉

    Dean

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

This topic contains 10 replies, has 4 voices, and was last updated by  DeanMarshall 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum