Click here to Skip to main content
14,600,694 members

JavaScript

 
GeneralRe: project question Pin
AnalogNerd17-Jan-13 5:21
MemberAnalogNerd17-Jan-13 5:21 
AnswerRe: project question Pin
J4amieC17-Jan-13 0:09
MemberJ4amieC17-Jan-13 0:09 
QuestionAbout mobile web debugger Pin
tidelgl13-Jan-13 19:18
Membertidelgl13-Jan-13 19:18 
QuestionRegular Expression Pin
AB777111-Jan-13 4:10
MemberAB777111-Jan-13 4:10 
AnswerRe: Regular Expression Pin
vinodkumarnie18-Jan-13 21:44
Membervinodkumarnie18-Jan-13 21:44 
AnswerRe: Regular Expression Pin
AspDotNetDev24-Jan-13 14:09
protectorAspDotNetDev24-Jan-13 14:09 
QuestionHow to put clipboard data into TextBox Pin
Ravindra Bisen10-Jan-13 0:02
MemberRavindra Bisen10-Jan-13 0:02 
AnswerRe: How to put clipboard data into TextBox Pin
J4amieC10-Jan-13 2:39
MemberJ4amieC10-Jan-13 2:39 
jQuery solution is pretty simples, but there is one weirdness, you cant read the value of the field until after it's been pasted, so I intoduce a short 1ms delay between paste, and trying to update the field:

$('#first').on('paste',function(e){
  
  setTimeout(function(){
    var text = $('#first').val().split(' ');
    $('#first').val(text[0]);
    $('#second').val(text[1]);
    $('#third').val(text[2]);  
  },1)
});


Live example: http://jsfiddle.net/PjT28/[^]


I also don;t cover any of the multitude of error conditions (empty paste, paste without 3 names separated by a single space etc etc etc)
AnswerRe: How to put clipboard data into TextBox Pin
Ravindra Bisen14-Jan-13 21:50
MemberRavindra Bisen14-Jan-13 21:50 
GeneralRe: How to put clipboard data into TextBox Pin
itzzmearun29-Jan-13 20:18
Memberitzzmearun29-Jan-13 20:18 
GeneralRe: How to put clipboard data into TextBox Pin
DaveAuld31-Jan-13 2:56
professionalDaveAuld31-Jan-13 2:56 
QuestionjQuery: live() function Pin
Phanindra2619-Jan-13 0:27
MemberPhanindra2619-Jan-13 0:27 
AnswerRe: jQuery: live() function Pin
J4amieC9-Jan-13 0:39
MemberJ4amieC9-Jan-13 0:39 
QuestionGoogle+ login on my website Pin
marcbase8-Jan-13 11:16
Membermarcbase8-Jan-13 11:16 
AnswerRe: Google+ login on my website Pin
Sandeep Mewara8-Jan-13 17:45
mentorSandeep Mewara8-Jan-13 17:45 
QuestionQuestion Pin
nth926-Jan-13 6:25
Membernth926-Jan-13 6:25 
AnswerRe: Question Pin
Richard MacCutchan6-Jan-13 6:32
mveRichard MacCutchan6-Jan-13 6:32 
AnswerRe: Question Pin
Thomas Daniels6-Jan-13 7:13
mvaThomas Daniels6-Jan-13 7:13 
AnswerRe: Question Pin
J4amieC8-Jan-13 0:52
MemberJ4amieC8-Jan-13 0:52 
AnswerRe: Question Pin
Keith Barrow8-Jan-13 1:30
professionalKeith Barrow8-Jan-13 1:30 
QuestionSharepoint - Aggregate lists with JavaScript Pin
garfield1853-Jan-13 3:38
Membergarfield1853-Jan-13 3:38 
QuestionBrowser Back Button Pin
tiger1463-Jan-13 1:58
Membertiger1463-Jan-13 1:58 
AnswerRe: Browser Back Button Pin
Keith Barrow3-Jan-13 3:03
professionalKeith Barrow3-Jan-13 3:03 
GeneralRe: Browser Back Button Pin
tiger1467-Jan-13 23:19
Membertiger1467-Jan-13 23:19 
GeneralRe: Browser Back Button Pin
Keith Barrow8-Jan-13 1:41
professionalKeith Barrow8-Jan-13 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.