DataTables With c++ (cgi)
DataTables With c++ (cgi)
infantheartlyjes
Posts: 9Questions: 0Answers: 0
Hi all,
I'm doing a project with this DataTables Plugin. I 'm just reading all concepts of this DataTable Plugin now. I'm not using any Relational DB in my server side. My all data are simply flat files. Using c++ program I'm reading data from the file and posting html page ( DataTable ) using CGI concepts. I'm going to use this DataTable just an editor. If i click save button in my page , I need to pass my all DataTable records to my cgi program. I checked lot of sites. I don't know how to send this DataTables data into my C++ program. Please help me to find out solution of my problem. How can i send DataTable Records to C++ through cgi ? Thanks in Advance.
I'm doing a project with this DataTables Plugin. I 'm just reading all concepts of this DataTable Plugin now. I'm not using any Relational DB in my server side. My all data are simply flat files. Using c++ program I'm reading data from the file and posting html page ( DataTable ) using CGI concepts. I'm going to use this DataTable just an editor. If i click save button in my page , I need to pass my all DataTable records to my cgi program. I checked lot of sites. I don't know how to send this DataTables data into my C++ program. Please help me to find out solution of my problem. How can i send DataTable Records to C++ through cgi ? Thanks in Advance.
This discussion has been closed.
Replies
I don't really understand the question. DataTables itself doesn't do any "sending of records". I presume you are trying to do a POST or a GET with form data? How would you do it if you weren't using DataTables? You'd use stdin in your CGI program to read the parameters - you'd need to do that here as well (or depending on your CGI environment read the parameters from the POST / GET variables.
This is my earlier version to pass data from the table to c++ program using cgi.
[code]
function getValues()
{
var rw = document.getElementsByTagName('tr');
var tmp = document.getElementsByTagName('td');
var datas='';
var arr=rw[0].cells.length;
var len=tmp.length;
for (i=0;i
See this example: http://datatables.net/release-datatables/examples/api/form.html