-
AuthorPosts
-
August 10, 2008 at 1:20 pm #132046
Hello,
I am using Joomla 1.0.13 with Edenite template on this website:
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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 13, 2008 at 10:20 am #265236Plz send link where has that error
iainmac Friendiainmac
- Join date:
- September 2006
- Posts:
- 62
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 25
- Thanked:
- 2 times in 1 posts
August 18, 2008 at 3:35 pm #265845I’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′]));
}
September 4, 2008 at 9:34 pm #268792Any ideas here? :confused:
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
September 18, 2008 at 10:02 pm #271215Thanks!
I made the changes suggested but I keep getting the same problem 🙁Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
September 19, 2008 at 3:09 am #271260Hi,
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 solutionSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
September 19, 2008 at 3:09 am #271261Hi,
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 solutionSeptember 23, 2008 at 11:13 pm #271977I 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
-
AuthorPosts
This topic contains 10 replies, has 4 voices, and was last updated by DeanMarshall 16 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum