working in iframe

working in iframe

MishaKMishaK Posts: 12Questions: 0Answers: 1
edited November 2011 in DataTables 1.8
http://www.logistix.ru/1.php

when press button in left frame the strange behavior in right

Replies

  • allanallan Posts: 61,823Questions: 1Answers: 10,129 Site admin
    The table is being reinitialised. This shouldn't be possible in a single window, but I think due to the multi-DOM document nature of your example you are managing to bypass how DataTables works for this. Basically the settings object for the table is being held in the "wrong" window. You are initialising the table in the right pane, and then again in the left pane - hence you effectively have two DataTables!

    So to stop this from happening, you want to initialise it only from one (presumably the right hand pane). That would need to present an API method to your left pane that would initialise the table, that the left pane can call (i.e. inter-window communication between the two frames).

    Allan
  • axllaruseaxllaruse Posts: 8Questions: 0Answers: 0
    Allan,
    Is there a way to have access to an example of what you are talking about?
    I have two tables with completely different functionality.
    Both communicate with different servers (JSON) and look different.
    So, I cannot be sharing the settings like in the multi-table example.
    I am trying to go around this issue using iFrames but the left iframe doesn't work while the right iframe works.
  • axllaruseaxllaruse Posts: 8Questions: 0Answers: 0
    I would like to clarify the follow:
    1. In Internet Explorer and Firefox they work perfectly.
    2. The problem shows when trying to use mobile devices that use Android for example.
    The first iframe doesn't work, while the second iframe works
This discussion has been closed.