获得jquery数据表+ jeditable + makeEditable + autogrow(或elasic)插件可以很好地一起播放?

时间:2012-10-24 23:46:48

标签: jquery datatables jeditable autogrow

我很难让所有这些jquery插件很好地一起玩。具体来说,自动增长和弹性插件似乎都不适用于datatables和markEditable插件。这是一段代码:

  
    <script type="text/javascript" language="javascript" src="/scripts/jquery.jeditable.js"></script>
    <script type="text/javascript" language="javascript" src="/scripts/jquery.dataTables.editable.js"><\/script>

    <script type="text/javascript" charset="utf-8">
      $(document).ready(function() {
      var oTable = $( '#beta' ).dataTable( {
         "sPaginationType": "full_numbers",
         "aoColumnDefs": [ { "bVisible": false, "aTargets": [ 7 ] } ],
         "aaSorting": [[ 1, "desc" ]],
         "sDom": 'lfr<"giveHeight"t>ip'
       }).makeEditable( {
            sUpdateURL: "/testdb/cgi-bin/betaTags.cgi",
            "aoColumns": [ null,
                          {
                            indicator: 'Saving Status...',
                            tooltip: 'Click to select tag status',
                            loadtext: 'loading...',
                            type: 'select',
                            submit: 'Ok',
                            data: "{'':'Please select...', '1':'Open','2':'Done','3':'In test'}",
                            sUpdateURL: function(value, settings) {
                               ... some code to handle the select menu
                            }
                          },
                          null,
                          null,
                          {
                            indicator: 'Saving Post Create Problems Note...',
                            tooltip: 'Click to edit Post Create Problems Note',
                            type: 'textarea',
                            submit:'OK',
                            cancel : 'Cancel',
                            sUpdateURL: function(value, settings) {
                               ... some code to handle the textarea cell
                            }
                          },
                          null,
                          {
                            indicator: 'Saving Answer Changes Note...',
                            tooltip: 'Click to update Answer Changes Note',
                            type: 'textarea',
                            submit:'OK',
                            cancel : 'Cancel',
                            sUpdateURL: function(value, settings) {
                               ... some code to handle another textarea cell
                            }
                          }
                      ]
            } );
      } );
    </script>

这很好但是当我尝试将自动增长或弹性方法添加到我的dataTable中的textarea单元格时,它没有做任何事情。我无法找到许多显示不同jquery插件彼此协同工作的示例,但如果有人能指出我的某些文章或资源,我将非常感激!

0 个答案:

没有答案