July 30, 2010, 09:39:09 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Always search the forum before posting !
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Add javascript file to ff_nextpage script  (Read 575 times)
kfawcett
Newbie

Offline Offline

Posts: 1


« on: November 17, 2009, 09:36:26 pm »

Would it be possible to add a javascript file to ff_page2 or to ff_nextpage

I am having a problem where the facileform is conflicting with a javascript file on my site that sets the height of modules. Here is the code from the JS file. I want it to call this javascript again before going to the next page. Is this possible?

Code:
/*
    Get the maximum height from divs with passed class as argument
    Djamil Legato <djamil@djamil.it>
    For Andy Miller
*/


var maxHeight = function(classname) {
    var divs = document.getElements(classname);
    var max = 0;
    divs.each(function(div) {
        max = Math.max(max, div.getSize().size.y);
    });
divs.setStyle('height', max);
    return max;
};

window.addEvent('load', function() {
if (!window.ie6) {
maxHeight('#mainmodules .block div div div');
maxHeight('#mainmodules2 .block div div div');
};
maxHeight('div.main-height');
});

Thanks!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF © 2001-2006 Lewis Media
| Terms of Use | Privacy | Sitemap |