[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - JS error in IE6
Advertisement

JS error in IE6

Moderators: Calcifer, slothy

JS error in IE6

Postby pegi » Wed Apr 25, 2007 6:13 pm

pegi
 
Posts: 2
Joined: Wed Apr 25, 2007 5:44 pm
Location: Sweden

Postby pegi » Thu Apr 26, 2007 6:44 am

Investigated the problem myself and found out that IE6 don't like that the "style.height" property is being set to a negative value while FF2 don't seem to mind.

So the bugfix to this problem seem to be this:

function parseItemsFromServer(ajaxIndex) [in dhtmlgoodies-week-planner.js]

Find:
currentAppointmentContentDiv.style.height = (elHeight-20) + 'px'; ...... line 187
and change it to:
currentAppointmentContentDiv.style.height = Math.max(0,elHeight-20) + 'px';

/PeGi
pegi
 
Posts: 2
Joined: Wed Apr 25, 2007 5:44 pm
Location: Sweden


Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 40 guests

cron