iframes in iframes

Hi Clifton,
I hope you are well. If you have time, and I'm guessing you do at the moment, could you have a look at this, please? I think it would be better if all my program was contained in one window. This would prevent the user from navigating back and forth randomly and would ensure that only my interfaces are used to navigate from one page of the program to another. i have quite a long way to go before I can start implementing this plan but I like to think ahead. iframes in iframes makes communication between pages more complicated. I would be grateful if you could look at the system I have come up with. Maybe there are better ways of doing this. The get property system seems a bit dodgy to me. I have made three test apps: test1 is in test2 and test2 is in test3. I have put them here https://www.mediacours.com/tb_examples/test3/index.html, I have put a zip here https://www.mediacours.com/tb_examples/test3.zip and here is the text of the 3 XML files:
Thanks for your time.
John
I hope you are well. If you have time, and I'm guessing you do at the moment, could you have a look at this, please? I think it would be better if all my program was contained in one window. This would prevent the user from navigating back and forth randomly and would ensure that only my interfaces are used to navigate from one page of the program to another. i have quite a long way to go before I can start implementing this plan but I like to think ahead. iframes in iframes makes communication between pages more complicated. I would be grateful if you could look at the system I have come up with. Maybe there are better ways of doing this. The get property system seems a bit dodgy to me. I have made three test apps: test1 is in test2 and test2 is in test3. I have put them here https://www.mediacours.com/tb_examples/test3/index.html, I have put a zip here https://www.mediacours.com/tb_examples/test3.zip and here is the text of the 3 XML files:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<page>
<config>
<!--TEST 1-->
</config>
<testSub>
<pgStyleObject>
<![CDATA[
{ theStyle : "cursor",
propVal : "pointer"}
]]>
</pgStyleObject>
<function name="myClick" event="click" params="" useTB="true">
<![CDATA[
tbfunction_pgExecuteRemote("main", "tbfunction_pgTBObjSet", ["relay", "user", ["holdDoc3", "response2", "text", ":-)"]]);
]]>
</function>
</testSub>
<testMain>
<pgStyleObject>
<![CDATA[
{ theStyle : "cursor",
propVal : "pointer"}
]]>
</pgStyleObject>
<function name="myClick" event="click" params="" useTB="true">
<![CDATA[
tbfunction_pgExecuteRemote("main", "tbfunction_pgTBObjSet", ["response3", "text", ":-)"]);
]]>
</function>
</testMain>
<getProp>
<pgStyleObject>
<![CDATA[
{ theStyle : "cursor",
propVal : "pointer"}
]]>
</pgStyleObject>
<function name="myClick" event="click" params="" useTB="true">
<![CDATA[
tbfunction_pgExecuteRemote("main", "tbfunction_pgTBObjSet", ["returnProp", "user",["holdDoc3", "myObj", "text"]]);
var result = tbfunction_pgExecuteRemote("main", "tbfunction_pgTBObjGet", ["response3", "text"]);
alert(result);
]]>
</function>
</getProp>
</page>
<?xml version="1.0" encoding="UTF-8"?>
<page>
<config>
<!--TEST 2-->
</config>
<holdDoc2>
<function name="myLoad" event="load" params="e">
<![CDATA[
tbfunction_pgGotoURL("holdDoc2", "../../test1/")
]]>
</function>
</holdDoc2>
<test>
<pgStyleObject>
<![CDATA[
{ theStyle : "cursor",
propVal : "pointer"}
]]>
</pgStyleObject>
<function name="myClick" event="click" params="" useTB="true">
<![CDATA[
tbfunction_pgExecuteRemote("holdDoc2", "tbfunction_pgTBObjSet", ["response1", "text", ":-)"]);
]]>
</function>
</test>
</page>
<?xml version="1.0" encoding="UTF-8"?>
<page>
<config>
<!--TEST 3-->
</config>
<holdDoc3>
<function name="myLoad" event="load" params="e">
<![CDATA[
tbfunction_pgGotoURL("holdDoc3", "../../test2/");
]]>
</function>
</holdDoc3>
<make id="relay" type="div" level="0" dims="-50,-50,20,20" class="" refObj="sysbootstrap" autoAlign="" replace="">
<function name="myUser" event="user" params="e">
<![CDATA[
//target = e.data[0];!!
//object = e.data[1];!!
//property = e.data[2]!!
//value = e.data[3]!!
tbfunction_pgExecuteRemote(e.data[0], "tbfunction_pgTBObjSet", [e.data[1], e.data[2], e.data[3]]);
]]>
</function>
</make>
<make id="returnProp" type="div" level="0" dims="-50,-50,20,20" class="" refObj="sysbootstrap" autoAlign="" replace="">
<function name="myUser" event="user" params="e">
<![CDATA[
//target = e.data[0];!!
//object = e.data[1];!!
//property = e.data[2]!!
//alert(e.data[0] + "\n" + e.data[1] + "\n" + e.data[2]);!!
var myProp = tbfunction_pgExecuteRemote(e.data[0], "tbfunction_pgTBObjGet", [e.data[1], e.data[2]]);
//alert(myProp);!!
//return myProp; Not possible?!!
tbfunction_pgTBObjSet("response3", "text", myProp);
]]>
</function>
</make>
</page>
Thanks for your time.
John