Links with titles
-
I try to provide titles in links whenever possible. I know that the CodeProject forum software automatically converts addresses to links ("A" tags) when they are pasted, and that the title portion (whatever it is called) is automatically selected, so perhaps it will be easier when I adjust to that way of doing things. I would of course prefer for it to be easier. One possibility would be for a PermaLink type of tool, except the link could be put into the clipboard as a link with the title. I am not sure if the "A" element that the CodeProject forum software uses is valid HTML, but I assume it is. So one possibility would be to use a HTML fragment format, which is a valid type of clipboard format. That however is likely too sophisticated. So simply pasting text would be good enough for me. That would make posting of links to other forum messages much easier. That would not help when we need to create a link outside of the CodeProject forums but it might be possible to make improvements in that area too. It just might be useful to support HTML fragments.
-
I try to provide titles in links whenever possible. I know that the CodeProject forum software automatically converts addresses to links ("A" tags) when they are pasted, and that the title portion (whatever it is called) is automatically selected, so perhaps it will be easier when I adjust to that way of doing things. I would of course prefer for it to be easier. One possibility would be for a PermaLink type of tool, except the link could be put into the clipboard as a link with the title. I am not sure if the "A" element that the CodeProject forum software uses is valid HTML, but I assume it is. So one possibility would be to use a HTML fragment format, which is a valid type of clipboard format. That however is likely too sophisticated. So simply pasting text would be good enough for me. That would make posting of links to other forum messages much easier. That would not help when we need to create a link outside of the CodeProject forums but it might be possible to make improvements in that area too. It just might be useful to support HTML fragments.
I'm not 100% sure of exactly how you would like this implemented. Could you give me an example?
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
I'm not 100% sure of exactly how you would like this implemented. Could you give me an example?
cheers, Chris Maunder
CodeProject.com : C++ MVP
I am not sure which of the two options I suggested taht you are asking about so let's start with the simplest. It is possible to put text into the clipboard that is the link; that is, the "A" element with the address and such. The text could be the same text that would exist in the edit box that I am using now to create a message. The text could be pasted as if it is plain text. Hopefully it won't be a problem for the text to be pasted without conversion. The link could include the title or whatever you want to call the text that is the text portion of an address. I am not sure if you want details of HTML fragments; do you know what I mean by that? The following will help. HTML Clipboard Format[^] How to add HTML code to the clipboard by using Visual Basic [^] Mike Stall's .NET Debugging Blog : Sample code for copying Html to Clipboard[^]
-
I am not sure which of the two options I suggested taht you are asking about so let's start with the simplest. It is possible to put text into the clipboard that is the link; that is, the "A" element with the address and such. The text could be the same text that would exist in the edit box that I am using now to create a message. The text could be pasted as if it is plain text. Hopefully it won't be a problem for the text to be pasted without conversion. The link could include the title or whatever you want to call the text that is the text portion of an address. I am not sure if you want details of HTML fragments; do you know what I mean by that? The following will help. HTML Clipboard Format[^] How to add HTML code to the clipboard by using Visual Basic [^] Mike Stall's .NET Debugging Blog : Sample code for copying Html to Clipboard[^]
I guess what I'm confused about is the actual problem. Let me try and rephrase: You would like to be able to paste CF_HTML clipboard data to our message boards in order to include TITLE attributes in your A tags. The first step of getting the data on to the clipboard is, I'm assuming, something you have under control. The step of pasting this data then comes down to us being able, at the client-side scripting level, to grab CF_HTML data and paste it into the text boxes as valid HTML in text format. Is this correct?
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
I guess what I'm confused about is the actual problem. Let me try and rephrase: You would like to be able to paste CF_HTML clipboard data to our message boards in order to include TITLE attributes in your A tags. The first step of getting the data on to the clipboard is, I'm assuming, something you have under control. The step of pasting this data then comes down to us being able, at the client-side scripting level, to grab CF_HTML data and paste it into the text boxes as valid HTML in text format. Is this correct?
cheers, Chris Maunder
CodeProject.com : C++ MVP
Forget the HTML clipboard for now. Now I will describe what I want to improve. To create a link to a forum thread, I:
- click on PermaLink
- go to the address bar and copy that
- go to the reply I am composing and paste the address into it
- go back to the article to get the title and copy and paste that
- go to the reply and paste that
I realize that most people don't bother to get the title but I am saying I do and my suggestion would make it easier for me and others to inlcude the title. I think other people will be more likely to include the title if it is as easy to do as I suggest doing it. Usint my suggestion, the following would be the equivalent steps:
- click on "copy PermaLink" or whatever you call it
- go to the reply and paste the address into it
It could be that easy.
-
I guess what I'm confused about is the actual problem. Let me try and rephrase: You would like to be able to paste CF_HTML clipboard data to our message boards in order to include TITLE attributes in your A tags. The first step of getting the data on to the clipboard is, I'm assuming, something you have under control. The step of pasting this data then comes down to us being able, at the client-side scripting level, to grab CF_HTML data and paste it into the text boxes as valid HTML in text format. Is this correct?
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
I guess what I'm confused about is the actual problem. Let me try and rephrase: You would like to be able to paste CF_HTML clipboard data to our message boards in order to include TITLE attributes in your A tags. The first step of getting the data on to the clipboard is, I'm assuming, something you have under control. The step of pasting this data then comes down to us being able, at the client-side scripting level, to grab CF_HTML data and paste it into the text boxes as valid HTML in text format. Is this correct?
cheers, Chris Maunder
CodeProject.com : C++ MVP