no lisences no teach

no lisences no teach

heavenheaven Posts: 4Questions: 0Answers: 0

anyone can give me a upload file of js?please,just teach

Replies

  • heavenheaven Posts: 4Questions: 0Answers: 0

    anybody here?

  • heavenheaven Posts: 4Questions: 0Answers: 0

    can a way to write it with Plug-in interface?

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin

    I don't understand what you are asking I'm afraid. DataTables, including its Javascript file (since it is a Javascript library) can be downloaded from the download page.

    Allan

  • heavenheaven Posts: 4Questions: 0Answers: 0
    edited April 2015

    I finish it with Plug-ins iterface,it like that:

    editor.fieldTypes.imgUpload = $.extend( true, {}, editor.models.fieldType, {
                    // Create the HTML mark-up needed for input and add any event handlers needed
                    create: function ( field, id ) {
                        var that = this;
                         field._enabled = true;
                         field._input = $(
                                    "<div class='col-lg-8'>"+
                                    "<div class='fileupload fileupload-new' data-provides='fileupload'>"+
                              "<div class='fileupload-preview thumbnail' style='width: 200px; height: 150px;'></div>"+
                              "<div> <span class='btn btn-file btn-success'><span class='fileupload-new'> 选择图片 </span><span class='fileupload-exists'> 替换 </span>"+
                              "<input type='file' id='DTE_Field_six'/>"+
                              "</span> <a href='#' class='btn btn-danger fileupload-exists' data-dismiss='fileupload'> 删除 </a> </div></div></div>");
                         return field._input;
                    },
                 
                    // 提交表单时获取图片数据
                    get: function ( field ) {
                        //return $('button.selected', field._input).attr('value');
                        console.log($("img",field._imput).attr("src"));
                        return $("img",field._imput).attr("src");
                    },
    ....其他省略
    

    i manually finished,so tired.
    And why '''dataTables.editor.js''' as same as '''dataTables.editor.min.js''', mix not good by my mean.
    my english not good, don't smile,i am trying.
    Thanks

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin

    why '''dataTables.editor.js''' as same as '''dataTables.editor.min.js'''

    They are identical in the trial. In the licensed version the min version is minified using Google's Closure Compiler.

    Allan

This discussion has been closed.