This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 29, 2011, 8:29 AM
1 Posts

Lost information of forms

  • Category: Server Side JavaScript
  • Platform: Not Applicable
  • Release: 8.5.2
  • Role: Developer
  • Tags: iFrame
  • Replies: 1
Hello,
I want to open more iFrame in the same xPages. 
 
But if i use more than 4 iframes i lose the information entered in the first iframe (oldest loaded iFrame).
 
I reduced the problem with this two xPages :
 xPage 1 : PlusieursVues.xsp

<?xml version="1.0" encoding="UTF-8"?>

<xp:view xmlns:xp="http://www.ibm.com/xsp/core">

<xp:br></xp:br>Page 1&#160;&#160;<iframe src="pb_memorisation.xsp" height="50px"></iframe>

<xp:br></xp:br>Page 2&#160;

<iframe src="pb_memorisation.xsp" height="50px"></iframe>

<xp:br></xp:br>

Page 3&#160;&#160;<iframe src="pb_memorisation.xsp" height="50px"></iframe>

<xp:br></xp:br>Page 4&#160;

<iframe src="pb_memorisation.xsp" height="50px"></iframe>

<xp:br></xp:br>Page 5&#160;

<iframe src="pb_memorisation.xsp" height="50px"></iframe>

</xp:view>

 
 
 xPage 2 include in the different iFrame : pb_memorisation.xsp
 

<?xml version="1.0" encoding="UTF-8"?>

<xp:view xmlns:xp="http://www.ibm.com/xsp/core"><xp:button id="monBtn" value="Afficher à la console">

<xp:eventHandler event="onclick" submit="true" refreshMode="complete">

<xp:this.action>

<xp:executeScript>

<xp:this.script><![CDATA[#{javascript:

print("bouton: " + getComponent("txt").value);

}]]></xp:this.script>

</xp:executeScript>

</xp:this.action>

</xp:eventHandler>

</xp:button>

<xp:inputText id="txt" />

 

 

</xp:view>

 
 
 Thank you for your help
 
Apr 2, 2011, 9:11 AM
7 Posts
Re: Lost information of forms
Why are you using iFrames - what information is stored in those forms?
Maybe it could be solved a different way... 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal