Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: DHTML Editor problems


Message #1 by "Pankaj Daga" <daga_pankaj@y...> on Tue, 4 Jun 2002 15:01:13
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

  Return to Index