Microsoft treeview control
-
I was wondering if anyone has seen this or even better knows how to fix it. I have applications that use the treeview control without error, but one client has IE 6.00.2800.1106 and Window 2000 server and gets the following error as a popup dialog: Interner Explorer Script Error An error has occured in the script on this page. Line: 647 Char: 5 Error: A dynamic link library (DLL) initialzation routine failed. Code: 0 URL: http://artemis/webctrl\_client/1\_0/treeview.htc Do you want to continue running scripts on this page? The treeview file is there and this server serves to other clients without error. Here is the function that has the error. // // blurFilter // // decreases alpha filter opacity on given node by 50%, adding one if needed // function blurFilter(oItem) { if (oItem.id == "_tnaccess") oItem = oItem.all.item("_tntext", 0); if (oItem.filters.length > 0) //this is the line with the error { var oFilter = oItem.filters.item("DXImageTransform.Microsoft.Alpha"); if (oFilter) { oFilter.opacity /= 2; return; } } oItem.style.filter += "progid:DXImageTransform.Microsoft.Alpha(opacity=50,style=0)"; } Thanks in advance for any help, Darrell
-
I was wondering if anyone has seen this or even better knows how to fix it. I have applications that use the treeview control without error, but one client has IE 6.00.2800.1106 and Window 2000 server and gets the following error as a popup dialog: Interner Explorer Script Error An error has occured in the script on this page. Line: 647 Char: 5 Error: A dynamic link library (DLL) initialzation routine failed. Code: 0 URL: http://artemis/webctrl\_client/1\_0/treeview.htc Do you want to continue running scripts on this page? The treeview file is there and this server serves to other clients without error. Here is the function that has the error. // // blurFilter // // decreases alpha filter opacity on given node by 50%, adding one if needed // function blurFilter(oItem) { if (oItem.id == "_tnaccess") oItem = oItem.all.item("_tntext", 0); if (oItem.filters.length > 0) //this is the line with the error { var oFilter = oItem.filters.item("DXImageTransform.Microsoft.Alpha"); if (oFilter) { oFilter.opacity /= 2; return; } } oItem.style.filter += "progid:DXImageTransform.Microsoft.Alpha(opacity=50,style=0)"; } Thanks in advance for any help, Darrell
Hi there, I think the problem is the client IE browser, the Microsoft IE treeview control uses the visual filters and transitions[^] to handle the display of the treeview control in some cases, and the filters which are applied to an object can be accessed via the filters property of that object. The implementation of the filters and transitions are the
dxtmsft.dll
anddxtrans.dll
that should appear in the folderC:\[WINDOWS]\system32
. If the browser cannot load those dlls, it will return the error as you are seeing, so IMO there are two options here that you might consider without changing your source code: + Register the dxtmsft.dll and dxtrans.dll. + Reinstall the IE browser with all the latest patches.