Using JavaScript top.init within iFrame -
i have application, appa, use javascript function using top.init() in of places. have use application part of different application, appb. have used iframe call appa inside appb.
the issue javascript inside appa. when calls top.initxxx(), trying search function @ main window's top level , failing. want access top.initxxx() method @ iframe level.
is there simple configuration job ?
top
accesses top-level page. if situation "iframe within iframe" should use parent
notation.
e.g. if appa inside of appb, call function of appb inside of appa use
parent.initxxx()
instead of top.initxxx()
Comments
Post a Comment