Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

pass id as var i; dynamically jsPlumb.addEndpoint(' i ', sourceOption ) #194

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
    $(document).ready(function()
    {  

        var i=0;

        $("#fixLenFileRead").click(
        function(){

        $("#graphDiv").prepend("<img src='img/clover/custom/fixedlengthfilereader.jpg' id="+i+"  class='dragDemo' width='32px' heigth='32px' style='position:absolute;'/>");

i++;

      jsPlumb.bind("ready",function(){

jsPlumb.addEndpoint('i', sourceOption );                         
jsPlumb.addEndpoint('i', targetOption); 
jsPlumb.draggable('i');

how pass i value in function???

Original issue reported on code.google.com by khatra.m...@gmail.com on 8 Feb 2012 at 7:18

GoogleCodeExporter commented 8 years ago
i'm not sure what your question is.

Original comment by simon.po...@gmail.com on 8 Feb 2012 at 6:40

GoogleCodeExporter commented 8 years ago
i'm going to close this unless there's an update - could you clarify your 
question?

Original comment by simon.po...@gmail.com on 12 Feb 2012 at 7:19

GoogleCodeExporter commented 8 years ago
closing.

Original comment by simon.po...@gmail.com on 13 Feb 2012 at 7:23