Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

DHTML refresh problem in HTA

已查看 19 次
跳至第一个未读帖子

Lionel Fourquaux

未读,
2002年11月16日 16:27:352002/11/16
收件人
Hello,

I'm trying to write an HTA interface to modify some registry setting (using WMI).
My "application" creates a table of parameters, with several buttons to add/delete
rows, and has a strange disfunctionment: if I add a row, then delete it, then change
nodes in another row, the new nodes aren't displayed at all. If I move the mouse
over one of the modified field, it appears if I changed it into a text node, and it
appears and I get an error message:

Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\WINDOWS\System32\mshta.exe
R6025
- pure virtual function call

(and mshta exits) if I changed it into a test input field.

If, instead of moving the mouse, I add another row, the modified fields appear
without error.

This behaviour is so strange that I doubt it can be caused by my code, and I have
been unable to reproduce it in a small example. (The full code is a 13Ko file,
and I won't post it here).

I'm using mainly appendChild, replaceChild, setAttribute, getAttribute, attachEvent,
detachEvent, childNodes, firstChild, and the rows and cells enumerations of the
table object model. The scripting language is javascript (even for WMI, although
it's more complicated to call WMI methods).

Is there some kind of known bug in this context, or some well-known programming
error, that could explain these refresh problems and the runtime error I see?

Thanks in advance for your help.

Lionel Fourquaux


Lionel Fourquaux

未读,
2002年11月16日 16:34:132002/11/16
收件人
I forgot to add this: it's on a WinXP Pro system, IE6, with all security patches applied.

Lionel Fourquaux

Lionel Fourquaux

未读,
2002年11月17日 16:39:582002/11/17
收件人
After several hours spent searching in the documentation, I found what the problem
was: I was mixing DOM calls with table object model enumerations. Using only
DOM fixed it.
Thanks to all who thougth about my problem.
Lionel Fourquaux

0 个新帖子