M
M
Maxim K2019-09-29 14:43:57
JavaScript
Maxim K, 2019-09-29 14:43:57

Storing site parameters without PHP, is it possible?

Hello.

There is a site https://snipp.ru/view/69 , at the end there is an example with saving parameters in a cookie. How to implement saving the positions of elements so that I would come from another PC and see the sorted list? PHP is not.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ivan Shumov, 2019-09-29
@inoise

Everything is perfectly possible, you just need to understand that we need to take the state to another place. You can do without a server, just put the complexity in a separate service, for example, firebase. We get the order from there and redraw the element through JS or draw it from scratch

X
xmoonlight, 2019-09-29
@xmoonlight

You can use an anchor link in the URL containing the desired sorting settings, such as: #DFGdfgDFGddGGDor #list4-2-4-434etc.
When it is called, you process the anchor with a JS script and restore the display parameters.

A
Anton Neverov, 2019-09-29
@TTATPuOT

No way. The data should be stored on the server, no matter how you want it.

S
Sergey Sokolov, 2019-09-29
@sergiks

You will have to connect an external service. For example, from Google. And in order to save something, you have to log in through them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question