S
Simon Wigzell
I'm using a 3rd party (htmlarea) WYSIWYG html editting tool. it works great
most of the time. I have a problem where I've made my own function to create
a bookmark type link. e.g. I want to turn the word "Bottom" into a link to
the bottom of the page where resides a bookmark e.g. <a name="Bottom"></a>
The 3rd party software in it's guts has this command:
sRange.pasteHTML(str1 +sHtml+ str2)
Where str1 = <a href="#Bottom">
sHtml = Bottom
str2 = </a>
sRange is the highltighted text that I want to make a link.
So you would expect it to make a string like this:
<a href="#Bottom">Bottom</a>
However, it makes a string like this :
<A
href="http://www.virtualcottageindustries.com/webpageRecordEditor.asp#Bottom
">Bottom</A>
Where http://www.virtualcottageindustries.com/webpageRecordEditor.asp is the
page that contains the 3rd party WYSIWYG editor. The HTML text I'm creating
here gets saved to a database and then used to generate a web page of a
completely different name. All I want is this : <a href="#Bottom">Bottom</a>
Any ideas?
most of the time. I have a problem where I've made my own function to create
a bookmark type link. e.g. I want to turn the word "Bottom" into a link to
the bottom of the page where resides a bookmark e.g. <a name="Bottom"></a>
The 3rd party software in it's guts has this command:
sRange.pasteHTML(str1 +sHtml+ str2)
Where str1 = <a href="#Bottom">
sHtml = Bottom
str2 = </a>
sRange is the highltighted text that I want to make a link.
So you would expect it to make a string like this:
<a href="#Bottom">Bottom</a>
However, it makes a string like this :
<A
href="http://www.virtualcottageindustries.com/webpageRecordEditor.asp#Bottom
">Bottom</A>
Where http://www.virtualcottageindustries.com/webpageRecordEditor.asp is the
page that contains the 3rd party WYSIWYG editor. The HTML text I'm creating
here gets saved to a database and then used to generate a web page of a
completely different name. All I want is this : <a href="#Bottom">Bottom</a>
Any ideas?