PDA

View Full Version : HTML OSD - VBScript really slow



avekevin
November 22nd, 2003, 07:57 PM
I have an OSD designed in HTML OSD that includes a VBScript that parses an XML file of ~5 megs. I am using the MSXML 2 DOM and IE 6 on XP.

When I run the HTML inside the OSD, it takes over a minute to complete. When I run the same HTML saved to a file and run within IE directly, it completes in 2-3 seconds.

Any ideas why?

Thanks,
Kevin

avekevin
November 22nd, 2003, 09:24 PM
I continued to play with the slowness, and I took the approach of trying to identfying the differences between the IE environment and the Girder environment.

So....I turned off the Parse Text option, and the script ran in 2-3 seconds!

The problem is that I need a Girder variable (actually 3) in the script. Any ideas?

Thanks,
Kevin

avekevin
November 23rd, 2003, 12:04 PM
I have been trying to figure out a workaround to this problem. In LUA, I put the three variables in the registry. Then in the OSD, I call the WSHShell object to read the registry to get the values.

It works, but I get a message from IE saying that the command could be harmful to the computer. There doesn't seem to be a way to dismiss the message from Girder since execution of the GML file stops until the window is gone.

Any other ideas?

Kevin