S
S
sergeev_ev2018-10-01 09:39:08
MODX
sergeev_ev, 2018-10-01 09:39:08

Modx what does the @ symbol mean in a pdoMenu snippet call?

Hello.
Please explain this entry:
[]
I can't get to the ul and li menu tags that are rendered with this snippet.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan, 2018-10-01
@sergeev_ev

Hello, these are the Parameters (sets of properties), configured in the snippet:
5bb1fd04e4a6b579701395.png

T
tplus, 2015-05-30
@tplus

iframe content has its own separate document. To get to it, you need to get the iframe and access its contentDocument.
Here is a very simplified code:

var iframe = document.getElementsByTagName('iframe')[0];
var insideDoc = iframe.contentDocument;
var insideDocTestElem = insideDoc.getElementById('test');

InsideDoc stores the document, but not your page, but the contents of the frame. It is important to note right away that the browser prevents access to iframe content in certain cases, so the connection protocol, domain, and so on are important.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question