Answer the question
In order to leave comments, you need to log in
hide function. Reacting to an event in JavaScrypt?
Page #1 has 5 lines with a unique id for each.
<tr id="trChecking">
...
</tr>
<dx:ASPxCheckBox ID="chbxChecking" ClientInstanceName="chbxChecking" Text="Поверка"
runat="server" Checked='<%# Convert.ToBoolean(Eval("CHECKING_BOOL")) %>'>
</dx:ASPxCheckBox>
Answer the question
In order to leave comments, you need to log in
If the second page on the same domain opens through,
then you firstly have access from the first page to the second document through page2.document,
and secondly, from the second page you have access to the first document through window.opener.document.
Accordingly, on the event on the second page, you can perform any manipulations from the first and vice versa.
For example, if you have jQuery:
Or on pure js:
If done correctly, it is better to call an event on the first page from the second page, and listen to these events on the first page and make the appropriate changes.
PS: Listening to the events of one window from another is not worth it, because when the page is refreshed, event listeners will fall off.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question