Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
would you mind explaining why you don't create the table directly with php? i'm really just curious because i can not imagine a scenario 🤔
-
@erroronline1 first i preface that i know nothing about best practice
well, either i had to reload the entire page for the new information or i had to transmit the entire page which could amount some amount of overhead. but mostly cause i wanted to see it done by me.
its still not done, the post part doesnt work and pagination doesnt support more than 100 entries but my focus lies elsewhere https://pastebin.com/qTX7PX5h
thinking about it..i could say i want to develop a mobile app that pulls the json data or to make it more universal? i am a mechanical engineer, i know nothing about coding -
@BurnoutDV thank you! did i get it right, you try to minimize server requests while editing your data?
-
@erroronline1 for no good reason, if this ever gets used for anything it will be local. Its mostly me practising new technics, the last time i wrote any web stuff was 2009.
But yes, the way it is now it should reduce the need to reload the page ever so often and minimize the data transfer needed (which should never be relevant, unless my raspberry pi mesh network idea realizes to an extreme) -
C0D4681456yWell that’s 1 way of doing it 😎
So I think your creating a table with both edit and view states... and saving changes back? -
@C0D4 thats at least the plan, i am currently fiddling around with the POST part, for now it works more robust than i thought. the charm is that it will work for any information that i use anywhere on the page..as long as i do the validation in the back end right
Related Rants
I spend the last two days to write a super tiny piece of the web thingy i want to create, a javascript that builds tables from the data the php backend provides. I am mostly clueless but i learned so much along the way..yet, it still feels like i accomplished anything at all.
163 lines of javascript, so less, so much time. At least its pretty much universal as long as i build the backend right (which is pretty easy).
rant
much work
little result
js