What files are needed for the server side processing web pade to work?
What files are needed for the server side processing web pade to work?
project2002
Posts: 6Questions: 2Answers: 0
Hello,
I have created the index.html, config.php, table.details.js, staff.php, and test.details.php. The table.details.php does provide the entire records from the details table when opened in the web browser but the html form is not filled with this info. What am I doing incorrectly?
Thank you for your help..
- John :
This discussion has been closed.
Answers
Hi John,
This is with Editor I presume and our Editor PHP libraries? Can you show me the Javascript and PHP that you are using please? Even better would be if you can give me a link to your page?
Thanks,
Allan
Hi Allan,
Attached are file requested since I am using my local server. Thank you for your help.
table.details.js
table.details.php
Your Editor and DataTables Ajax urls point at different scripts. Is that intentional? Normally you'd point them both to the same - in this case
table.details.php
.Allan
Hi Allan or anyone with an answer to my issues,
To be clearly upfront, I am quite confused. Do I need to become a javascript/jquery expert? What files need are needed for the details MySQL table to create a table with edit and deletion capabilities? Here is my current guess:
1. index.html -- contains the html table structure along with the requested js and datatable links to scripts. Should the actual js lines of script be included in this html?
2. Or should the js lines of code be in another separate file? Such as table.details.js
3. config.php filed with all the localhost and MySQl login info.
4. table.details.php does produce a JSON file but this file is not converted into a html table . What am I misunderstanding?
The generated tables using editor work but difficult to use css to style. Plus the generated table using editor are not the same as explained for a developer to build from scratch.
I really want for this system to work for me. Thanks again for any additional help!
John
Hello Allan,
Since I have seen your most recent post concerning help, attached are the only the files I have changed to the rest of the editor files. Of course, excluding the config.php file.
index.html
table.detals.js
table.details.php
You need to change the
staff.php
reference for both your DataTables and Editor initialisations to referencetable.details.php
since that is the file that you have created for the job.That will file both send data for the table and also receive it for Editor. The Editor libraries that you've used there will do that for you.
No you don't need to be an expert by any means, but you will need to feel comfortable with the code - it isn't a zero code solution.
If you do want a zero code option, have a look at out CloudTables product, which is basically DataTables + Editor with a nice configuration UI on top of it .
Allan