Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using hyperlinks and markers

0 views
Skip to first unread message

Harley

unread,
Aug 15, 1998, 3:00:00 AM8/15/98
to
weve developed a small activex using dhtml component to allow easy editing
online. everything is working fine, but we cannot define hyperlinks using
markers, to link into the same page.
from the hyperlink dialog, ive tried everthig, like (other) protocol, and
#jumphere as link, but it simply does not work.
how do i generate the <A NAME="JUMPHERE"> tag using dhtml editing component?
thanks


Alexander Beniaminov

unread,
Aug 18, 1998, 3:00:00 AM8/18/98
to
Hi!
It's example in Delphi 3 with using DOM interface:

Works with select text

procedure TDHTMLEdit.Insert_Anchor;
var
DOMInterface: IHTMLDocument2;
Range: IHTMLTxtRange;
begin
DomInterface := Document as IHTMLDocument2;
Range := DomInterface.selection.createRange as IHTMLTxtRange;
Range.pasteHTML('<A name="'+ Range.Text +'">'+ Range.Text +'</A>');
end;


Harley пишет в сообщении <#1WqqmLy...@uppssnewspub04.moswest.msn.net>
...

Harley

unread,
Aug 18, 1998, 3:00:00 AM8/18/98
to
thanks for the tip, but i meant using the activex control... calling the
DHTMLEdit.ExecCommand DECMD_HYPERLINK, OLECMDEXECOPT_DODEFAULT method brings
up dialog in wich you can specify the protocol and url for the link.
once i used this to set a marker, but forgot how, and now i need to do it
urgent!
it was something like specifying (others) protocol and setting the url to
#markername.
any idea?

Rick Jesse

unread,
Aug 23, 1998, 3:00:00 AM8/23/98
to
You can use the DECMD_HYPERLINK command to insert an anchor with the
href=#jumphere. Then, where you want the anchor to link to, you must insert
an achor element, using the DOM, with its name property set to jumphere. I
just tried it -- works great!

--
Rick Jesse (v-r...@microsoft.com)
DHTML Editing Component Development Team
Microsoft Corp.

Harley wrote in message <#1WqqmLy...@uppssnewspub04.moswest.msn.net>...

0 new messages