Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Links with titles

Links with titles

Scheduled Pinned Locked Moved Site Bugs / Suggestions
htmlhelplearning
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sam Hobbs
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • S Sam Hobbs

      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.

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • C Chris Maunder

        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

        S Offline
        S Offline
        Sam Hobbs
        wrote on last edited by
        #3

        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[^]

        C 1 Reply Last reply
        0
        • S Sam Hobbs

          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[^]

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          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

          S 3 Replies Last reply
          0
          • C Chris Maunder

            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

            S Offline
            S Offline
            Sam Hobbs
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • C Chris Maunder

              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

              S Offline
              S Offline
              Sam Hobbs
              wrote on last edited by
              #6

              None of the last post uses the CF_HTML clipboard format or has anything to do with that. The last post describes using plain text only, or at least could.

              1 Reply Last reply
              0
              • C Chris Maunder

                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

                S Offline
                S Offline
                Sam Hobbs
                wrote on last edited by
                #7

                So I am suggesting something at the other end; that you create a "copy PermaLink" or something like that in each post or thread, to make it easier to create a link.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups