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. Web Development
  3. When write in textbox, words are displayed in the same page

When write in textbox, words are displayed in the same page

Scheduled Pinned Locked Moved Web Development
comhelptutorial
6 Posts 5 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.
  • A Offline
    A Offline
    Abdul Rhman Alsri
    wrote on last edited by
    #1

    Hello codeproject professionals, Please help me in : "When I write in a textbox, I want to show the words written in the same page without posting the page". The process is occurring simultaneously that is: "When a user is writing in the textbox, the words written I can make them displayed in the same page in other place". See example: Ex: http://tareemnet.com/os.png

    modified on Sunday, April 18, 2010 9:30 AM

    D D B 3 Replies Last reply
    0
    • A Abdul Rhman Alsri

      Hello codeproject professionals, Please help me in : "When I write in a textbox, I want to show the words written in the same page without posting the page". The process is occurring simultaneously that is: "When a user is writing in the textbox, the words written I can make them displayed in the same page in other place". See example: Ex: http://tareemnet.com/os.png

      modified on Sunday, April 18, 2010 9:30 AM

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #2

      ? What are you asking? Of course the words appear in the same page, you wouldn't be able to see them otherwise. Please be a little more specific, we are here to help, but we cannot read minds.

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

      A 1 Reply Last reply
      0
      • D Dalek Dave

        ? What are you asking? Of course the words appear in the same page, you wouldn't be able to see them otherwise. Please be a little more specific, we are here to help, but we cannot read minds.

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

        A Offline
        A Offline
        Abdul Rhman Alsri
        wrote on last edited by
        #3

        I edited the question

        L 1 Reply Last reply
        0
        • A Abdul Rhman Alsri

          I edited the question

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          When you look at the source code, the HTML is there for you to see. As is any references to javascript. Look for that textbox and see where the code employed takes you. Then ask again where you get stuck. But don't forget to include an example of code where you are stumped (note NOT all the code - just the relevant bits which stumps you).

          1 Reply Last reply
          0
          • A Abdul Rhman Alsri

            Hello codeproject professionals, Please help me in : "When I write in a textbox, I want to show the words written in the same page without posting the page". The process is occurring simultaneously that is: "When a user is writing in the textbox, the words written I can make them displayed in the same page in other place". See example: Ex: http://tareemnet.com/os.png

            modified on Sunday, April 18, 2010 9:30 AM

            D Offline
            D Offline
            daveyerwin
            wrote on last edited by
            #5

            Here is a very simple example ...

            <script>
            func=function (arg){
            d = document.getElementById("div1")
            d.innerHTML = arg.value
            }
            </script>
            <body>
            <div id="div1"></div>
            <input type="textbox" onkeyup="func(this)">
            </body>

            Hope it helps.

            1 Reply Last reply
            0
            • A Abdul Rhman Alsri

              Hello codeproject professionals, Please help me in : "When I write in a textbox, I want to show the words written in the same page without posting the page". The process is occurring simultaneously that is: "When a user is writing in the textbox, the words written I can make them displayed in the same page in other place". See example: Ex: http://tareemnet.com/os.png

              modified on Sunday, April 18, 2010 9:30 AM

              B Offline
              B Offline
              burntblark
              wrote on last edited by
              #6

              You would have to monitor the text boxes' onKeyUp event. For every invoke of the event you would copy the content of the respective text box and represent in the respective area. Example:

              /**
              * variable x is the id of the text box you want copied
              * and y is the id of the tag you want the text box's value to be copied to
              **/

              function copy(x,y)
              {
              var text=document.getElementById(x).value;
              document.getElementById(y).innerText = text;
              }

              The above should be placed in a script tag preferably within your head tag. Then add the following code to the respective textboxes:

              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