Click here to Skip to main content
15,907,905 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: how to add item and notify item double-click of jquery sortable? Pin
Jules VDV14-Dec-10 4:39
Jules VDV14-Dec-10 4:39 
To add items dynamically, it looks like you would have to add another DOM element and then call the sortable initializer on the entire set of elements again. So you may have a button that adds a dom element to a div container with the id 'sortable'. Then call the method below.

$( "#sortable" ).sortable();


For the double click functionality, I would use jQuery's dblclick API. So while you're creating the DOM element above, right before you call sortable(), I would attach a double click handler like so:

$('#target').dblclick(function() {
  alert('Handler for .dblclick() called.');
});


GeneralRe: how to add item and notify item double-click of jquery sortable? Pin
Not Active14-Dec-10 4:45
mentorNot Active14-Dec-10 4:45 
GeneralRe: how to add item and notify item double-click of jquery sortable? Pin
Jules VDV14-Dec-10 4:59
Jules VDV14-Dec-10 4:59 
QuestionHttpException Path 'zGET' is forbidden. [modified] Pin
markymark826-Dec-10 23:29
markymark826-Dec-10 23:29 
AnswerRe: HttpException Path 'zGET' is forbidden. Pin
NeverHeardOfMe8-Dec-10 0:16
NeverHeardOfMe8-Dec-10 0:16 
GeneralRe: HttpException Path 'zGET' is forbidden. Pin
markymark829-Dec-10 4:59
markymark829-Dec-10 4:59 
AnswerRe: HttpException Path 'zGET' is forbidden. Pin
GenJerDan28-Dec-10 4:00
GenJerDan28-Dec-10 4:00 
GeneralRe: HttpException Path 'zGET' is forbidden. Pin
markymark823-Jan-11 22:21
markymark823-Jan-11 22:21 
QuestionCenter Site Pin
SortyZ5-Dec-10 8:27
SortyZ5-Dec-10 8:27 
AnswerRe: Center Site Pin
TweakBird24-Dec-10 1:39
TweakBird24-Dec-10 1:39 
GeneralRe: Center Site Pin
Hiren solanki24-Dec-10 1:53
Hiren solanki24-Dec-10 1:53 
GeneralRe: Center Site Pin
Kasson6-Jan-11 20:35
Kasson6-Jan-11 20:35 
GeneralRe: Center Site Pin
TweakBird7-Jan-11 18:34
TweakBird7-Jan-11 18:34 
GeneralMessage Closed Pin
17-Jan-11 23:29
zenweb tasarim17-Jan-11 23:29 
GeneralMessage Closed Pin
7-Jun-11 8:10
celilcan7-Jun-11 8:10 
QuestionJavascript Multiple Select with Selenium Pin
Ibrahim Bello5-Dec-10 0:55
Ibrahim Bello5-Dec-10 0:55 
GeneralBlueprint IE hack breaks VS designer. Pin
Brady Kelly23-Nov-10 17:12
Brady Kelly23-Nov-10 17:12 
GeneralRe: Blueprint IE hack breaks VS designer. Pin
Bryian Tan3-Jan-11 14:29
professionalBryian Tan3-Jan-11 14:29 
QuestionLooking for software for a client Pin
LenaBr16-Nov-10 4:16
LenaBr16-Nov-10 4:16 
AnswerQuickbooks Online Pin
David Mujica16-Nov-10 4:26
David Mujica16-Nov-10 4:26 
GeneralRe: Quickbooks Online Pin
LenaBr16-Nov-10 4:37
LenaBr16-Nov-10 4:37 
AnswerRe: Looking for software for a client Pin
cjoki16-Nov-10 4:51
cjoki16-Nov-10 4:51 
Questiona:hover problem Pin
mr_plow9911-Nov-10 5:14
mr_plow9911-Nov-10 5:14 
AnswerRe: a:hover problem Pin
Manfred Rudolf Bihy12-Nov-10 1:12
professionalManfred Rudolf Bihy12-Nov-10 1:12 
AnswerRe: a:hover problem Pin
Gregory Gadow30-Nov-10 3:55
Gregory Gadow30-Nov-10 3:55 

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.