[SOLVED] HTML Composer: IbComposer_setCurrentSelection when used in a Tab control
I have an HTML Composer page with a Tab Control. There are two tabs. Each tab has a iframe with reference to an HTML Composer page. In one of the HTML Composer pages I have another iframe. In that iFrame I run JavaScript code using the HTML Composer "API", specifically, the function IbComposer_setCurrentSelection. I code it as
This works correctly when I run the HTML Composer page, but it doesn't work when I run the HTML Composer page with the Tab Control. I suspect "parent.parent" isn't going up the chain enough, but I'm not sure what it should be. I might play around with jQuery "closest"...This message has been edited. Last edited by: Francis Mariani,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 02, 2014, 11:51 PM
Francis Mariani
This was easily solved. I should be using parent. instead of parent.parent.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server