dataTables.editor.js & dataTables.editor.min.js both are minified? (version 1.5.1)

dataTables.editor.js & dataTables.editor.min.js both are minified? (version 1.5.1)

sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0

Hi, I have downloaded datatable editor 1.5.1. i am trying to integrate it with Spring MVC controller.
I am following the way as example given, however while saving editted cell "onblur" I encounter "Uncaught TypeError: Cannot read property 'error' of null" thrown from dataTables.editor.js. I want to debug further but dataTables.editor.js also a minified version. I want to jave plain version of dataTables.editor.js. Any idea? Any restriction to have plain version of dataTables.editor.js?
Download zip always give same version for both dataTables.editor.js and dataTables.editor.min.js

Thanks
Sabari

Replies

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin

    Hi Sabari,

    The trial version of Editor is minified and obfuscated in both files. The purchase version includes the source.

    Regarding the error, if you give us a link I will take a look at the issue.

    Regards,
    Allan

  • sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0

    Hi Allan,

    Thanks for the reply. I am integrating datatable with our project code base with actual data. I wont be able to demonstrate it externally. Do expect some sort of sample demo with hard coded data? If so let me try to create the sample in the form of html and js.
    What's the best place to post (such as jsfiddle) and provide you link. Please advise.

    Regards,
    Sabari

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin

    JSFiddle, JSBin, CodePen or http://live.datatables.net

    Allan

  • sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0

    Hi Allan,

    Our company interested in your product, more chances to purchase. I am into exploring the datatable features for our requirements.

    I have put my sample code at: live.datatables.net/zaniresi/3/edit

    I could not upload css and js files there.

    Stating again - When I try to edit the cells, I have got error below

    dataTables.editor.min.js:399 Uncaught TypeError: Cannot read property 'error' of null

    Kindly guide. Thanks

    Regards,
    Sabari

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin

    Hi Sabari,

    What is the data that the server returned from ajax/fwrulesave.do when you edit a cell? Does it confirm to the JSON that Editor expects?

    Allan

  • sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0

    Got it Allan, I will have to do the needful for return value from server.

    However, in "client to server" call I have received "action" parameter value properly
    but "data" parameter is coming as null. I am afraid I might have missed something in table/editor description. You already have my code. Please help. Thanks

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin

    interesting - that shouldn't be the case. data should be an object of data.

    If you have a look at the Ajax request in your browser's inspector tools ("Network" panel) it should show what the data payload was - what is it?

    Allan

  • sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0
    edited November 2015

    Perfect. I could receive the payload ad follows

    action:edit
    data[2][resourceA][value]:2.2.2.2,3.3.3.3
    data[2][resourceB][value]:S10889-AAC
    data[2][port][value]:8080, 8081rtertertretretre
    data[2][protocol][value]:TCP
    data[2][direction][value]:INBOUND
    data[2][type][value]:
    data[2][remark][value]:Success
    

    After processing I am returning response as follows. No errors thrown in javascript console. At the same time "process indicator" still moving, looks like "hang" status.
    Any idea?

    {
        "data": [
            {
                "id": {
                    "change": "",
                    "value": "144444"
                },
                "resourceA": {
                    "change": "",
                    "value": "S10889-AAB"
                },
                "resourceB": {
                    "change": "",
                    "value": "S10889-AAB"
                },
                "protocol": {
                    "change": "",
                    "value": "TCP444"
                },
                "remark": {
                    "change": "",
                    "value": "sabari"
                },
                "port": {
                    "change": "",
                    "value": "8080, 8081"
                },
                "direction": {
                    "change": "",
                    "value": "INBOUND44444"
                },
                "type": {
                    "change": "",
                    "value": ""
                }
            }
        ]
    }
    
  • sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0

    Also verified Ajax response is successful

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin

    If you are seeing data as null at the server, but the client-side is transmitting the data correct (which appears to be the case from the trace above), then its going to be a server-side issue on how to access the data.

    I haven't used Spring myself, so I'm afraid I can't help much in that regard, you would need to ask how to access the sent array data in a Spring based forum.

    Allan

  • sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0

    I have no issues with server side data now. Request you to read my previous comment again. I am saying the returned response (as per protocol) is taken further. Thanks in advance Allan

  • sabari_sgsabari_sg Posts: 12Questions: 1Answers: 0

    I have no issues with server side data now. Request you to read my previous comment again. I am saying the returned response (as per protocol) is NOT taken further, i feel like "hang" state. Thanks in advance Allan

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin

    So you are no longer seeing data as null at the server-side as you stated above? I didn't realise that had been resolved - sorry.

    Unfortunately I'm afraid I'm really not sure why it would hang if the correct data is being returned and there is no Javascript error being reported. I really would need to be able to access the page to understand that that is the case.

    Allan

This discussion has been closed.