author=Basher link=topic=2738.msg13422#msg13422 date=1597214484 wrote:
its run fine at chrome and there is no errors and have an excellent output .
when i open the html inside HTML opendcl i have an errors about my script code .
For any future search on this topic...
I'd been struggling to find the reason for HTML script errors and couldn't figure out why they were not seen in BricsCAD but were prolific in AutoCAD.
It turns out that during a BricsCAD installation, an Internet Explorer registry entry is set which specifies the MSIE User-Agent BricsCAD will use. By default, there is no corresponding entry for AutoCAD.
The key can be checked and set with the following code:
(if (not (vl-registry-read "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION" (strcat (getvar "program") ".exe")))
(vl-registry-write "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION" (strcat (getvar "program") ".exe") 11001)
)
Where the 11001 DWord value will force IE11 emulation instead of an older IE emulation.
More info can be found in this article: https://www.devhut.net/webbrowser-activex-control-google-maps-invalid-character-scripting-error/