N
N
nicklayk2017-09-19 12:58:20
HTML
nicklayk, 2017-09-19 12:58:20

How to implement direct link to modal window?

How to implement direct link to modal window?
Here's instagram as an example:625596b906f6472da305c8af9ce7dafc.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Budaev, 2017-09-19
@Markus_Kane

I will share the solution that came to my mind on the fly. It is possible that it is not the best and I myself will be glad to hear other options.
I propose the href attribute of the link to register a link to the page (in the Instagram example, to the post). One way or another, in the backend you have a controller that gives information on this page (post). Accordingly, you load this information into the modal window. And the link specified in the attribute is sent to the address bar.
But in general, I’m sure that for this it’s better to use ready-made solutions, which are probably provided by front-end frameworks like Angular or Vue.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question