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



Feb 17, 2012, 11:59 AM
2 Posts

javascript binding

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
 Hello, i have a problem. i need to have a alternate color in my repeat control view
 
so in my li tag css i change this line 
 
<li data-theme ='e'>
 
 
to  this 
<li data-theme="#{javascript:'e'}"> 
 
just for testing before any logic in the javacript. 
 
but it seems that the data-theme  should not have the '-' character when using javascript binding.
 
I cannot change data-theme to another name  because i use jquery mobile 
 
Now what do i do? 
 
Any help is apreciated 
 
Thank you 
 
António 
Feb 20, 2012, 3:19 PM
272 Posts
Re: javascript binding
Hi,
 
it's a bug. The only workaround is in my opinion to create a output scriptblock instead like this:
 
<xp:scriptBlock id="scriptBlock1">
   <xp:this.value><![CDATA[document.write("<li data-theme=\"#{javascript:'e'}\"></li>")]]></xp:this.value>
</xp:scriptBlock>
 
Hope this helps
Sven
 

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