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. ASP.NET
  4. Changing Position of Textbox

Changing Position of Textbox

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
5 Posts 3 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.
  • K Offline
    K Offline
    Khan Bangash
    wrote on last edited by
    #1

    How can I change the position of a Textbox via javascript. Any help regarding this . Thankx in advance.

    C 1 Reply Last reply
    0
    • K Khan Bangash

      How can I change the position of a Textbox via javascript. Any help regarding this . Thankx in advance.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You'd change the style of the textbox in order to move it, by changing it's padding, or floating it, etc. Basically, you move it using CSS.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      K 1 Reply Last reply
      0
      • C Christian Graus

        You'd change the style of the textbox in order to move it, by changing it's padding, or floating it, etc. Basically, you move it using CSS.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        K Offline
        K Offline
        Khan Bangash
        wrote on last edited by
        #3

        Thank u very much, Can u give me an example.

        B 1 Reply Last reply
        0
        • K Khan Bangash

          Thank u very much, Can u give me an example.

          B Offline
          B Offline
          blue_arc
          wrote on last edited by
          #4

          var t=0; function controlMover(obj) { ; obj=(typeof obj=="object")?obj:document.getElementById(obj); var _top=parseInt(obj.style.top)+1; var _left=parseInt(obj.style.left)+1; obj.style.top=_top+"px"; obj.style.left=_left+"px"; if(_left==500) { clearTimeout(t); } else { t= setTimeout("controlMover('"+obj.id+"')",10); } } CHECK THIS OUT :)

          Ravi Kant Srivastava (System Analyst) HandsOn Technology & Engineering Gurgaon (India) e-mail:ravikant@hte.co.in

          K 1 Reply Last reply
          0
          • B blue_arc

            var t=0; function controlMover(obj) { ; obj=(typeof obj=="object")?obj:document.getElementById(obj); var _top=parseInt(obj.style.top)+1; var _left=parseInt(obj.style.left)+1; obj.style.top=_top+"px"; obj.style.left=_left+"px"; if(_left==500) { clearTimeout(t); } else { t= setTimeout("controlMover('"+obj.id+"')",10); } } CHECK THIS OUT :)

            Ravi Kant Srivastava (System Analyst) HandsOn Technology & Engineering Gurgaon (India) e-mail:ravikant@hte.co.in

            K Offline
            K Offline
            Khan Bangash
            wrote on last edited by
            #5

            Thank u very much its realy helpful.

            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