I did a bit more research and it seems that the yaf_GetForm() function is the problem. It uses a simple browser detection switch and treats all Microsoft browsers the same way. The problem is that IE7 (at least in standards-compliance mode) responds differently.
I *think* I have a solution. But I don't have a full forum to test it on so I might be mistaken.
Change the javascript code from:
Code:
function yaf_GetForm()
{
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1)
{
theform = document.ctl00;
}
else {
theform = document.forms["ctl00"];
}
return theform;
}
To something that will also differentiate IE7 from IE6 and older:
Code:
function yaf_GetForm()
{
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1)
{
if (typeof document.body.style.maxHeight != "undefined")
{
//IE7 or newer
theform = document.forms["ctl00"];
}
else
{
// less than IE7
theform = document.ctl00;
}
}
else {
theform = document.forms["ctl00"];
}
return theform;
}
cheers,
doug.
MVP 2007/2008 - Official Umbraco Trainer for North America -
Percipient Studios