A
A
Alexander Medvedev2017-05-18 03:04:29
PHP
Alexander Medvedev, 2017-05-18 03:04:29

How to fire a jQuery event when a page is accessed from a specific link?

On the Main page there is a section with the services of the organization. This section contains 4 links (for each service) to the Services page. The Services page has 4 blocks for each service, which are initially set to display: none.
It is necessary to implement the following, for example: the user, being on the Home page, clicks on the link of the "X" service, when going to the Services page, the block with the "X" service is assigned display: block.
This is currently implemented via hash. But I understand that this is not the best solution. I guess that this is implemented using php, but unfortunately, at the moment, I'm not very familiar with it (

ps site is on modx revo

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-05-18
@Ooos

Call the script on that page.
Well, or use IF
Instead of 1, put the id of the document, well, a chunk with a script in JS, well, or anything, even a css class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question