Hello everyone,
I am using the microsoft DHTML component in one of my apps (clsid:2D360201-
FFF5-11d1-8D03-00A0C959BC0A). I use the component as a WYSIWYG editor. I
want to dynamically add a link in the editor using javascript. However, I
get the content of the link from another function and would not like to
invoke the link dialog box. However, when I try this:
ctrl.ExecCommand(DECMD_HYPERLINK,
OLECMDEXECOPT_DONTPROMPTUSER, "http://www.yahoo.com"). It returns me an
error. It works fine if I do not give it the third parameter, i.e.
http://www.yahoo.com
The documentation mentions that I can do this, but somehow I have not been
able to use this feature.
Any help would be greatly appreciated.
Thanks,
Pankaj