Windows Vista Fix for QuickPlace 7.0
In Windows Vista, the DHTML activeX control was removed due to security concerns. The DHTML control was an easy to use Rich Text editor that could turn any Rich Text entered into HTML. QuickPlace has used this control since version 1 as did many other applications.
QuickPlace has a rather simple test that assumes if ActiveX works, then the DHTML control can be used. In Vista this is no longer true, so we have coded up a change that puts an extra test to make sure Vista is not being used before DHTML is applied.
These changes need to be applied to the HaikuCommonForms.ntf file under your QuickPlace/AreaTypes directory on the server (and will be overwitten during any upgrade or hotfix application so you must reapply as needed).
qpbase form:
becomes:
QuickPlace has a rather simple test that assumes if ActiveX works, then the DHTML control can be used. In Vista this is no longer true, so we have coded up a change that puts an extra test to make sure Vista is not being used before DHTML is applied.
These changes need to be applied to the HaikuCommonForms.ntf file under your QuickPlace/AreaTypes directory on the server (and will be overwitten during any upgrade or hotfix application so you must reapply as needed).
qpbase form:
this.isPlatformWin = isPlatformWin_ClientBrowserObject;
...
function isPlatformWin_ClientBrowserObject ()
{
logEnter("isPlatformWin_ClientBrowserObject");
return ((this.m_clientPlatform.indexOf("Win") != -1) ? true : false);
logExit("isPlatformWin_ClientBrowserObject");
};
...
if (h_ClientBrowser.hasActiveX ())
formObj.fieldDef[y] = new _IERichTextControlField;
becomes:
this.isPlatformWin = isPlatformWin_ClientBrowserObject;
this.isPlatformVista = isPlatformVista_ClientBrowserObject;
...
function isPlatformWin_ClientBrowserObject ()
{
logEnter("isPlatformWin_ClientBrowserObject");
return ((this.m_clientPlatform.indexOf("Win") != -1) ? true : false);
logExit("isPlatformWin_ClientBrowserObject");
};
function isPlatformVista_ClientBrowserObject ()
{
logEnter("isPlatformVista_ClientBrowserObject");
return ((navigator.appVersion.indexOf("Windows NT 6.0") != -1) ? true : false);
logExit("isPlatformVista_ClientBrowserObject");
};
...
if (h_ClientBrowser.hasActiveX ())
if (h_ClientBrowser.isPlatformVista()){
formObj.fieldDef[y] = new _SimpleTextControlField();
} else {
formObj.fieldDef[y] = new _IERichTextControlField;
}
