musikfabrik and litebox-bugfix

handgestrickt finished the customer musikfabrik. the website was created with Contenido. we integrated a FLASH-slideshow and a litebox-module. litebox had a bug in Internet Explorer 7 that had to be fixed. when the image pops up, the screen is blurred out. unfortunately in Internet Explorer 7 the screen is only blurred out partly. if you scroll down, the page is not blurred. i fixed this bug, including an algorithm, that tries all properties to find the document-height. in the end it takes the highest value. the real hard work was moving the customer from one server to another. because Contenido is lacking of a client-export-feature, i had to write a script that does this. all the foreign-keys had to be retrieved an reconnected. additionally some keys were hardcoded into templates. all of the templates had to be rewritten with search and replace. finally this thing is running cleanly on a new server.

litebox bugfix:

function getPageSize(){
        var windowWidth, windowHeight;
        if (self.innerHeight) { // all except Explorer
                windowWidth = self.innerWidth;
                windowHeight = self.innerHeight;
        } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
                windowWidth = document.documentElement.clientWidth;
                windowHeight = document.documentElement.clientHeight;
        } else if (document.body) { // other Explorers
                windowWidth = document.body.clientWidth;
                windowHeight = document.body.clientHeight;
        }

        var pageWidth = 0;
        if(document.body.clientWidth && pageWidth < document.body.clientWidth) pageWidth = document.body.clientWidth;
        if(document.body.scrollWidth && pageWidth < document.body.scrollWidth) pageWidth = document.body.scrollWidth;
        if(document.documentElement.scrollWidth && pageWidth < document.documentElement.scrollWidth) pageWidth = document.documentElement.scrollWidth;
        if(document.documentElement.clientWidth && pageWidth < document.documentElement.clientWidth) pageWidth = document.documentElement.clientWidth;
        if(document.documentElement.offsetWidth && pageWidth < document.documentElement.offsetWidth) pageWidth = document.documentElement.offsetWidth;
        if(document.body.offsetWidth && pageWidth < document.body.offsetWidth) pageWidth = document.body.offsetWidth;
        if(window.innerWidth && pageWidth < window.innerWidth) pageWidth = window.innerWidth;

        var pageHeight = 0;
        if(document.body.clientHeight && pageHeight < document.body.clientHeight) pageHeight = document.body.clientHeight;
        if(document.body.scrollHeight && pageHeight < document.body.scrollHeight) pageHeight = document.body.scrollHeight;
        if(document.documentElement.scrollHeight && pageHeight < document.documentElement.scrollHeight) pageHeight = document.documentElement.scrollHeight;
        if(document.documentElement.clientHeight && pageHeight < document.documentElement.clientHeight) pageHeight = document.documentElement.clientHeight;
        if(document.documentElement.offsetHeight && pageHeight < document.documentElement.offsetHeight) pageHeight = document.documentElement.offsetHeight;
        if(document.body.offsetHeight && pageHeight < document.body.offsetHeight) pageHeight = document.body.offsetHeight;
        if(window.innerHeight && pageHeight < window.innerHeight) pageHeight = window.innerHeight;

        arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
        return arrayPageSize;
}

Saturday, 21. July 2007 • trackback url

...comment pending moderation

Re: musikfabrik and litebox-bugfix

a+

Reply

Monday, 25. February 2008 • Kanye West • @wwwReply

trackback url

milf hunter

milf hunter

Reply

Wednesday, 05. March 2008 • milf hunter • @wwwReply

trackback url

...comment pending moderation

...comment pending moderation

auto insurance canada

auto insurance canada

Reply

Tuesday, 11. March 2008 • auto insurance canada • @wwwReply

trackback url

auto insurance canada

auto insurance canada

Reply

Thursday, 13. March 2008 • auto insurance canada • @wwwReply

trackback url

...comment pending moderation

...comment pending moderation

Add Comment

( to reply to a comment, click the reply link next to the comment )

Comment Title:
Your Name:
Email Address:
Make Public?
Website:
Make Public?

Comment:


Allowed XHTML tags : a, b, i, strong, code, acrynom, blockquote, abbr. Linebreaks will be converted automatically.


Captcha:

captcha image

Soundfile:


please type the content of the above image or the soundfile into the following form-field: