SitePoint Sponsor

User Tag List

Results 1 to 17 of 17
  1. #1
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    quick please please help cursor automatically to the second textbox

    hello all member help me quick
    i am create a one form in 10 texbox. i am copy other web Url link when i am past in textbox cursor not move automatically to the second textbox. and when past the second textbox the cursor move the not third textbox. please help me how can move automatically cursor textbox only past. not mixmim leg using.
    send completely code java script and input code quickly thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    hello all member help me quick
    i am create a one form in 10 texbox. i am copy other web Url link when i am past in textbox cursor not move automatically to the second textbox. and when past the second textbox the cursor move the not third textbox. please help me how can move automatically cursor textbox only past. not mixmim leg using.
    send completely code java script and input code quickly thanks
    The tab key lets you move the cursor automatically from one text box to the next.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No i am not useing TAB, only when i am paste in one text box the cursor move second text box.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    No i am not useing TAB, only when i am paste in one text box the cursor move second text box.
    Here are the details on dealing with cut/copy/paste and a demo

    Once you detect that a paste has occurred, you can search the elements object of the form for the field that was pasted in to, and then set the focus to the next element in that list.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using the java script when i am paste any text in text box then cursor move automatic next text box.

  6. #6
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    I am using the java script when i am paste any text in text box then cursor move automatic next text box.
    Well done, I'm glad things worked out for you.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  7. #7
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please help me all member i am worried

  8. #8
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please any body tell me answer

  9. #9
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    please any body tell me answer
    The information in post #4 is what you need to know to achieve what you want to do.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  10. #10
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not under stand post # 4 complete guide

  11. #11
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    I am not under stand post # 4 complete guide
    We can help you to understand what you need to know so that you can get things working, but if you need someone to write the code for your particular needs, this might not be the place for you.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  12. #12
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok Sir i am create 5 text box use code
    <input type=text name=filed1><br>
    <input type=text name=filed2><br>
    <input type=text name=filed3><br>
    <input type=text name=filed4><br>
    <input type=text name=filed5><br>
    when i am paste any text in filed1 cursor move automatic filed2. How can possible in java scripts

  13. #13
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    Ok Sir i am create 5 text box use code
    <input type=text name=filed1><br>
    <input type=text name=filed2><br>
    <input type=text name=filed3><br>
    <input type=text name=filed4><br>
    <input type=text name=filed5><br>
    when i am paste any text in filed1 cursor move automatic filed2. How can possible in java scripts
    Assuming that those input fields are in a form, you attach a function to the onpaste event of the form.
    The reason for attaching on to the form itself is so that you don't have to attach it on to multiple separate fields, and if new fields are added or removed you don't have to do any further work. It just continues to work as expected when the event is attached on to the form itself instead of its multiple elements.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  14. #14
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guide me i am again request write the complete code and again thanks

  15. #15
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    thanks guide me i am again request write the complete code and again thanks
    That is quite a lot of work and is something that is commonly considered to be impolite to ask for.
    Last edited by paul_wilkins; Dec 17, 2011 at 23:50.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  16. #16
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    Ok Sir i am create 5 text box use code
    <input type=text name=filed1><br>
    <input type=text name=filed2><br>
    <input type=text name=filed3><br>
    <input type=text name=filed4><br>
    <input type=text name=filed5><br>
    when i am paste any text in filed1 cursor move automatic filed2. How can possible in java scripts
    i am not using the java script i thinks all not know answer my question.

    again question

    i am wanted 5 text table. i am click first text box and i am press Ctrl + v its means paste the cursor not move next text box when i am press Tab then cursor move next text box. I want to not use the Tab to go next text box. Cursor move automatic the next text box when i am press Ctrl + v .

  17. #17
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by kako0000000 View Post
    i am wanted 5 text table. i am click first text box and i am press Ctrl + v its means paste the cursor not move next text box when i am press Tab then cursor move next text box. I want to not use the Tab to go next text box. Cursor move automatic the next text box when i am press Ctrl + v .
    See post #4

    Do you want someone to create all of the scripting code for you?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •