0
First, I apologize if this question is too vague or stupid, but I really don’t have enough knowledge to formulate otherwise.
My idea is simple, create a site where, through Javascript, the visitor can, for example, drag and change the position of an element on the screen. But that this new position that the element has assumed is permanent, including for the next visitors of the page, and not just on the client side. I imagine then a script that changes positioning parameters in a css file on the server permanently.
Is it possible to do this only with Javascript? I imagine it is not possible for Javascript to normally be a client-side language. What other direction can I take, then?
Possible with JS is, but the "permanent" result will only be visible on the machine where the operation was made (i.e., it won’t be in the "server CSS", which in itself is a very vague statement). If that’s not what you want, better [Dit] the question and clarify with details. It is easier for you to describe the intention and purpose of the application you want to do, and not the way you are trying to do it.
– Bacco
This is possible with Javascript to drag and save the final position) and ajax (to talk to the server); some technology on the server to store that position. How is the question very broad. Could you [Edit] the question and start with one of the parts of Javascript.
– Sergio
While making a codepen to explain the application better, I found a solution: http://code.tutsplus.com/tutorials/simple-draggable-element-persistence-with-jquery--net-7474 Should I remove the question? Since the link solution solves my problem.
– Bruno Garcia