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



May 9, 2012, 3:07 PM
18 Posts

Scoped variable in Iframe src

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role:
  • Tags: Scoped Variable issue
  • Replies: 2
Hi
 
I trying to insert a google map using a Sessionscope variable (which hold the address to the correct google maps page) on to an xpage, is it possible to set the iframe source using the scoped variable?
 
I have tried but maybe getting the syntax wrong?
 
Thanks in advance
 
Matt
May 12, 2012, 2:22 PM
67 Posts
Re: Scoped variable in Iframe src
Hi Matt, 
 
since 'iframe' is not a xpages control you can put a computed text with content type HTML for the complete block: 
  
 <xp:text escape="true" id="computedField1" contentType="html">
<xp:this.value>
<![CDATA[#{javascript:
return ('<iframe style="border:none;frameborder:none;" width="700" height="700px" id="iframe2" src="' + ScopeVariable + '"></iframe>')
}]]>
</xp:this.value>
</xp:text>
 
Uwe 
May 14, 2012, 3:14 PM
18 Posts
Re: Scoped variable in Iframe src
Many Thanks

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