N
N
nikitind2014-12-11 18:20:54
HTML
nikitind, 2014-12-11 18:20:54

hide function. Reacting to an event in JavaScrypt?

Page #1 has 5 lines with a unique id for each.

<tr id="trChecking">
...
</tr>

On page number 2 there is a choice from 1 to 5 lines (by enabling checkbox'a)
<dx:ASPxCheckBox ID="chbxChecking" ClientInstanceName="chbxChecking" Text="Поверка"
  runat="server" Checked='<%# Convert.ToBoolean(Eval("CHECKING_BOOL")) %>'>
 </dx:ASPxCheckBox>

After selection, it is necessary that only selected rows are shown on page No. 1. Let's say they chose 1,4,5 on page #2, then show them on page #1.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kovpashko, 2014-12-12
@sainttechnik

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 question

Ask a Question

731 491 924 answers to any question