I used the download builder to create files including Editor and Edit is not working.
I used the download builder to create files including Editor and Edit is not working.
I paid for the editor and it does download a directory for Editor-1.5.1. At the end of the page it says to just include the two root files:
<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>
Which I put in my code/html file. I include my .js file as well that is working with the trial set I had going. The editor worked there. But while I get my data from my php custom code, the Edit button is not showing up on the page and the events are not firing back to my php code. I have a log file that saves each request for debugging.
Even though I said to include the editor package, am I supposed to include additional js/css files in my main html page? Been trying some combos, but thought I would ask here as I am probably making some newb mistake.
Answers
maybe I missed something in the build?
I rebuilt it without FixedColumns, re-uploaded, still no luck.
Hi,
Sorry to hear you are having problems with this.
Could you give me a link to the page that mentions this so I can correct it please?
If you are using the download builder, all you should need to include are the DataTables files from the builder and the Editor files from your local Editor copy.
Can you show me the Javascript being used to create the Editor and DataTables?
Do you have a link to the page you are working on you can give me so I can check it out directly?
Thanks,
Allan
I will make it more generic and post everything here.
I have PHP code that will just return a JSON array of dummy data set up. The edit function should show up and send the request, but I do not have it processing the edit request. I just made it a simple PHP integration to hard coded data. But I should see the edit button and inline editing working with requests sent to my code and logged, as I did in the trial piece.
The test data is set up at:
https://dev.intacctservices.com/tmtest/DTproject/project.html
You can view source and see the html and javascript.
I did put the DataTables files in its own directory so I can just reference it in any other code I need. And I modified some of the links to url's to work with the location of the DataTables files that I downloaded from the generator and unzipped.
I just found out about the debug link/bookmark. Didn't seem to work on chrome, but did in firefox. The link to my debug results:
https://debug.datatables.net/ovoxud
In case this helps.
btw, I noticed the buttons piece was not in my code based on the debugger. I rebuilt a package to include the buttons, but then I get an error about too many buttons. I switched back to what I first had above. I can quickly make the one available for the buttons if needed.
I created a page that points to the original js/css files that worked and this one shows the edit button. The custom js file for my table is the same for both. Page is at:
https://dev.intacctservices.com/tmtest/DTproject/project.old.html
Debug page is:
https://debug.datatables.net/ihufeg
Difference I see is the DataTables is 1.10.8 and Buttone is 1.0.1 on the working pages I have. None working pages have the latest.
Tried many things over the weekend and it looks like it boils down to this thread with the answer about the select piece. I pointed to the cdn version and I am back to the trial solution. Now to just get the inline editing working. UPDATE, got it working as well.
Here is the thread:
https://datatables.net/forums/discussion/29443/uncaught-buttons-too-many-iterations
I was getting the same error in this discussion.
Hi,
Good to hear you've got it working now :-)
Allan