gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15945
  • QQ554730525
  • 铜币25337枚
  • 威望15352点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
阅读:1903回复:0

Bug: Duplication of HTML code on client

楼主#
更多 发布于:2003-08-23 14:46
Description
Sections of the HTML code may be repeated or incomplete when using MapObjects IMS (MOIMS) to serve HTML web pages to clients. As a result, certain sections or elements of the web page appear duplicated or incomplete when viewed in a browser.


Cause
There is a limit to the number of times the MOIMS Weblink.WriteString method can be called when creating an HTML document for the client. This limit is system-dependent. The duplicate HTML code results when this limit is exceeded.


Solution or Workaround
Do not use WriteString to create the HTML document on the client. Do the following instead:

1. Use the file editing functions available in your programming environment to write the lines of HTML into a new text file with a .html extension.

2. Use the MOIMS WebLink.WriteFile method to send the .html file to the client. For example:



Dim bWorked as Boolean
bWorked = WebLink1.WriteFile "C:\temp\topframe.html"

3. Use the file management functions available in your programming environment to delete the .html file. It is OK to delete the .html file immediately after using the WriteFile method.
喜欢0 评分0
游客

返回顶部