$("column") is null error on Firebug
The Moment professional and unique design Joomla template support forum.
- GK User
- Sun Dec 20, 2009 2:53 pm
Hi ... I just downloaded the "the Moment" template to take a look.
After playing with the positions, i took out the right module leaving the inset position in place.
But this created the error $("column") is null in Firebug.
detailed error: $("column") is null
anonymous()template...cripts.js (line 78)
error source line: [Break on this error] $('inset').setStyle("height", $('column').getSize().size.y+"px");n
I looked on your forum responses and see that you made a change the template_scripts.js file and replaced it but the same error occurred.
If I'm using the quick start that was downloaded today, these should have the most updated files from Jul 2009, right?
How can I fix the error?
Thanks!
After playing with the positions, i took out the right module leaving the inset position in place.
But this created the error $("column") is null in Firebug.
detailed error: $("column") is null
anonymous()template...cripts.js (line 78)
error source line: [Break on this error] $('inset').setStyle("height", $('column').getSize().size.y+"px");n
I looked on your forum responses and see that you made a change the template_scripts.js file and replaced it but the same error occurred.
If I'm using the quick start that was downloaded today, these should have the most updated files from Jul 2009, right?
How can I fix the error?
Thanks!
-
- Fresh Boarder
- GK User
- Mon Dec 21, 2009 11:48 am
please try to replace content of template_scripts.js file with this code:
- Code: Select all
window.addEvent("load",function(){
Fx.Height = Fx.Style.extend({initialize: function(el, options){this.parent(el, 'height', options);this.element.setStyle('overflow', 'hidden');},toggle: function(){return (this.element.offsetHeight > 0) ? this.custom(this.element.offsetHeight, 0) : this.custom(0, this.element.scrollHeight);},show: function(){return this.set(this.element.scrollHeight);}});
$$("#jwscroller-inner img").setStyle("border","none");
if($('slide_area_container')){
var login = false;
var search = false
if($('slide_area_login')) var login_area = $('slide_area_login');
if($('slide_area_search')) var search_area = $('slide_area_search');
if($('slide_area_search')) var cont = $('slide_area');
cont.setProperty("class","pa-1");
if($('slide_area_login')) $('slide_area_login').setStyle('display','none');
$('slide_area_search').setStyle('display','none');
var fxx = new Fx.Height('slide_area_container',{duration: 300,transition: Fx.Transitions.linear});
fxx.set(0);
if($("search_trigger")){
$("search_trigger").addEvent("click",function(){
if(search){
search = false;
(function(){search_area.setStyle('display','none');}).delay(300);
fxx.toggle();
}else if(login){
fxx.toggle();
login = false;
search = true;
(function(){
cont.setProperty("class","pa-2");
if($('slide_area_login')) login_area.setStyle('display','none');
search_area.setStyle('display','block');
fxx.toggle();
}).delay(400);
}else if(!(login || search)){
search = true;
cont.setProperty("class","pa-2");
search_area.setStyle('display','block');
fxx.toggle();
}
});
}
if($("login_trigger")){
$("login_trigger").addEvent("click",function(){
if(login){
login = false;
(function(){login_area.setStyle('display','none');}).delay(300);
fxx.toggle();
}else if(search){
fxx.toggle();
login = true;
search = false;
(function(){
cont.setProperty("class","pa-1");
login_area.setStyle('display','block');
if($('slide_area_search')) search_area.setStyle('display','none');
fxx.toggle();
}).delay(400);
}else if(!(login || search)){
cont.setProperty("class","pa-1");
login = true;
login_area.setStyle('display','block');
fxx.toggle();
}
});
}
}
if($('column') && $('inset') && $('column').getSize().size.y < $('inset').getSize().size.y){
$('column').setStyle("height", $('inset').getSize().size.y+"px");
}else{
if($('inset') && $('column')){
$('inset').setStyle("height", $('column').getSize().size.y+"px");
}
}
});
-
- Administrator
- GK User
- Thu Feb 25, 2010 4:40 pm
thanks you !!!
-
- Fresh Boarder
3 posts
• Page 1 of 1