Can you post the whole page code to test?
please find the code which i am using.
[HTML]<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>
<%@ page import="com.gtech.esi.core.system.util.GlobalAppli cationObject" %>
<%@ page import="com.gtech.esi.core.system.Global" %>
<%@ page import="com.gtech.esi.core.system.notification.Not ification" %>
<%@ page import="com.gtech.esi.core.gui.player.game.instant .form.ShowGameDetailForm" %>
<%@ page import="com.gtech.esi.core.gui.player.uam.PlayerBe an" %>
<%@ page import="org.apache.struts.Globals" %>
<%@ page import="java.text.NumberFormat"%>
<%@ page import="java.util.Locale"%>
<%@ page import="java.text.DecimalFormat"%>
<%@ page import="java.text.DecimalFormatSymbols" %>
<head>
<title>LOTERIE NATIONALE LUXEMBOURG</title>
<link rel = "stylesheet" href = "<%= request.getContextPath() %>/lottery/CSS/general.css" type = "text/css">
<link rel = "stylesheet" href = "<%= request.getContextPath() %>/lottery/CSS/loterie.css" type = "text/css">
<link rel = "stylesheet" href = "<%= request.getContextPath() %>/lottery/CSS/rubbel.css" type = "text/css">
<link rel = "stylesheet" href = "<%= request.getContextPath() %>/lottery/CSS/interactive.css" type = "text/css">
<link rel = "stylesheet" href = "<%= request.getContextPath() %>/styles/style.css" type = "text/css">
<script type = "text/javascript" src = "<%= request.getContextPath() %>/lottery/js/menu.js"></script>
<script type = "text/javascript" src = "<%= request.getContextPath() %>/lottery/js/tools.js"></script>
<script type = "text/javascript" src = "<%= request.getContextPath() %>/lottery/js/xml.js"></script>
<script src="<%= request.getContextPath() %>/lottery/js/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="<%= request.getContextPath() %>/lottery/js/AC_ActiveX.js" type="text/javascript"></script>
[/HTML]
- <script type="text/javascript">
-
//nsingh Added for capturing cross browser backspace button
-
document.onkeydown = function(e) {handleKeys(e)}
-
document.onkeypress = function(e) {handleKeys(e)}
-
function handleKeys(e) {
-
if(e)
-
{
-
if (e.stopPropagation) {
-
e.stopPropagation();
-
e.preventDefault();
-
}
-
} else{
-
window.event.cancelBubble = true; //IE reports window.event not arg
-
window.event.returnValue = false; //IE reports window.event not arg
-
-
}
-
}
-
if (document.images)
-
{
-
img1 = new Image();
-
img2 = new Image();
-
img3 = new Image();
-
img4 = new Image();
-
img5 = new Image();
-
img1.src = "<%= request.getContextPath() %>/images/logo.gif";
-
img2.src = "<%= request.getContextPath() %>/images/btn_select_demo.gif" ;
-
img3.src = "<%= request.getContextPath() %>/images/btn_autrex_jue.gif" ;
-
img4.src = "<%= request.getContextPath() %>/images/btn_transfer.gif" ;
-
img5.src = "<%= request.getContextPath() %>/images/white_point.gif" ;
-
}
-
</script>
-
[HTML]<meta http-equiv="pragma" content="no-cache">
<meta http-equiv = "Expires" content = "-1">
<style>
.bgcol{background-color: #6DB344;}
li.submenu {
background-color:#6DB344;
background-image:none;
text-align:left;
line-height:20px;
border-top-width:1px;
}
ul.submenu {
background-color:#6DB344;
background-image:none;
text-align:left;
line-height:20px;
border-top-width:1px;
}
</style>
<script>
[/HTML]
- <script>
-
function childWindowClose(contextPath){
-
//alert("window.opener.location :" + window.opener.location);
-
flag = true;
-
window.opener.location.href = contextPath+"/gaming/viewGameLobby.do?mode=display";
-
self.close();
-
}
-
-
function childWindowCloseFree(){
-
flag = true;
-
self.close();
-
}
-
-
function forwardToAddFunds(url){
-
if( self.opener ){
-
flag = true;
-
self.window.close();
-
window.opener.location.href = url;
-
}
-
}
-
-
-
function showReglement(url){
-
window.open(url);
-
}
-
-
function openFlash(){
-
if(self.opener){
-
flag = true;
-
window.open('http://www.adobe.com','newWindow','target=blank,addressbar=yes,menubar=yes,status=yes,scrollbars=yes,resizable=yes');
-
parent.window.close();
-
}
-
}
-
[HTML]</script>
</head>
<body id="play">
<bean:define id="currentBalance" name="purchaseInstGameForm" type="java.lang.String" property="walletBalance"/>[/HTML]
[HTML] <td align="right" id="transferFunds" style="position:absolute; top:5px; left:440px; visibility:hidden;" ><a href="javascript
:#"><img onclick="forwardToAddFunds('/player/account/wallet/landing.do?action=changeDebitCard');return false;" src="<%= request.getContextPath() %>/images/btn_transfer.gif" border="0" alt="" align="absmiddle"></a></td>
<% }} %>
<td id="dropDownId" style="visibility:hidden;">
[/HTML]
- <%
-
String leftWidth = "220px";
-
if(!gameType.equals("free")){
-
leftWidth = "220px";
-
} else if( gameType.equals("free") ){
-
leftWidth = "600px";
-
}
-
%>
-
[HTML] <ul class="menulist" id="listMenuRoot" style="position:absolute; top:5px; left:<%=leftWidth%>; margin:0px; padding:0px;">
<li>
[/HTML]
- <% if( gameType.equals("free") ) {%>
-
<a href="javascript:#"><img src="<%= request.getContextPath() %>/images/btn_select_demo.gif" border="0" alt="" width="200" align="absmiddle"></a>
-
<% } else {%>
-
<a href="javascript:#"><img src="<%= request.getContextPath() %>/images/btn_autrex_jue.gif" border="0" alt="" align="absmiddle"></a>
-
<% } %>
-
[HTML] <ul class="sub" id="dropdown">
<li class="cat" style="width:195px"> </li>
<logic:notEmpty name="purchaseInstGameForm" property="allInstGames">
<logic:iterate id="instGames" name="purchaseInstGameForm" property="allInstGames" type="com.gtech.esi.ire.core.player.game.area.valu e.GameAttributesVO">
<li class="cat" style="width:195px">
<% if( gameType.equals("free") ) { %>
<script>[/html]
- if (navigator.userAgent.indexOf("MSIE") >= 0){
-
//alert("IE");
-
document.writeln("<span style='position:absolute; left:0px; clear:left; float:left'>");
-
}else if(navigator.userAgent.indexOf("Firefox") >= 0){
-
//alert("FF");
-
document.writeln("<span style='position:relative;left:0px; clear:left;'>");
-
}
-
[HTML] </script>
<img src="<%=request.getContextPath()%>/images/white_point.gif" style="vertical-align:middle ">
<a href="<%=request.getContextPath()%>/gaming/wager/purchaseInstGame.do?mode=display&type=<%=gameType% >&gameId=<bean:write name='instGames' property='gameId'/>&flashVersion=" class="fontdrop" onclick="setValue()"><bean:write name="instGames" property="gameName"/>
</a>
</span>
<script>
if (navigator.userAgent.indexOf("MSIE") >= 0){
document.writeln("<span class='fontprice'>");
}else if(navigator.userAgent.indexOf("Firefox") >= 0){
document.writeln("<span class='fontprice' style='float:right;'>");
}
</script>
<bean:write name="instGames" property="gameCost"/> € </span>
<% } else { %>
<script>
if (navigator.userAgent.indexOf("MSIE 6") >= 0){
//alert("IE");
document.writeln("<span style='position:absolute; left:0px; clear:left; float:left;'>");
} else if(navigator.userAgent.indexOf("MSIE 7") >= 0){
document.writeln("<span style='position:absolute; left:0px; clear:left; float:left;'>");
} else if(navigator.userAgent.indexOf("Firefox") >= 0){
//alert("FF");
document.writeln("<span style='position:relative;left:0px; clear:left;'>");
}
</script>
<img src="<%=request.getContextPath()%>/images/white_point.gif" style="vertical-align:middle ">
<a href="<%=request.getContextPath()%>/gaming/wager/purchaseInstGame.do?mode=display&type=<%=gameType% >&gameId=<bean:write name='instGames' property='gameId'/>&flashVersion=" class="fontdrop" onclick="setValue()"><bean:write name="instGames" property="gameName"/>
</a>
</span>
<script>
if (navigator.userAgent.indexOf("MSIE 6") >= 0){
document.writeln("<span class='fontprice'>");
} else if(navigator.userAgent.indexOf("MSIE 7") >= 0){
document.writeln("<span class='fontprice'>");
} else if(navigator.userAgent.indexOf("Firefox") >= 0){
document.writeln("<span class='fontprice' style='float:right;'>");
}
</script>
<bean:write name="instGames" property="gameCost"/> € </span>
<% } %>
</li>
</logic:iterate>
</logic:notEmpty>
</ul>
</li>
</ul>
</td>
[/HTML]
- <% if( !gameType.equals("free") ) {%>
-
<td align="right" id="walletBalance" style="position:absolute; top:20px; left:660px; visibility:hidden;"><bean:message key="PlayGame.playInstGame.walletBalance"/><span style="font:bold; left:620px;" id="walletBalanceId"></span> </td>
-
<% } %>
-
[HTML] </tr>
<script>displayWalletBalance('','<%=currentBalance %>'); </script>
<tr><td><img src="<%=request.getContextPath()%>/lottery/img/pixel.gif" width="1" height="30" border="0" alt=""></td></tr>
<tr class = 'bgcol' >
<td valign="center" colspan = "4">
<%
String error = (String) request.getAttribute(Global.GAME_ERROR_KEY);
if(null != error && error.equalsIgnoreCase(Global.ERROR_INSUFFICIENT_F LASH)){
request.setAttribute(Global.GAME_ERROR_KEY, Global.ERROR_INSUFFICIENT_FLASH);
%>
<script>forwardToAddFunds('<%= request.getContextPath()%>/flashError.do?flashError=true')</script>
<%
} else if(null != error && error.equalsIgnoreCase(Global.ERROR_GAME_UNAVAILAB LE)) {
request.setAttribute(Global.GAME_ERROR_KEY, Global.ERROR_GAME_UNAVAILABLE);
%>
<script>forwardToAddFunds('<%= request.getContextPath()%>/gameUnavailableError.do?unavailableError=true')</script>
<%
}else {
%>
<div id="flashGameFile" style="margin-border=1;" >
<script type="text/javascript">
AC_FL_RunContent('classid','clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ,'codebase','https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width','790','height','520','src','<%=urlPlayPart %>','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer', 'movie','<%=request.getContextPath()%>/movies/generic.loader','bgcolor','#6DB344', 'wmode','transparent','id','game','FlashVars','<%= urlParams%>' ); //end AC code
</script>
</div>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="margin-border=1;" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="790" height="520" id="game" align="middle">
<param name="wmode" value="transparent">
<param name="movie" value=<%=urlPlayPart%> />
<param name="quality" value="high" />
<param name="bgcolor" value="#6DB344" />
<param name=FlashVars value=<%=urlParams%> />
<embed src=<%=urlPlayPart%> quality="high" bgcolor="#6DB344" width="790" height="520" name="game" align="middle" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" FlashVars="<%=urlParams%>" wmode="transparent"/>
</object>
</noscript>
<%}%>
</td>
</tr>
<tr class = 'bgcol' style="height: -5;">
<%
String urlForReglement = "#";
if( request.getParameter( "gameId" ).equals( Integer.toString(Global.GAME_ID1) ) ){
urlForReglement = request.getContextPath()+"/lottery/fr/rubbel/elo/pdf/reglement.pdf";
} else if( request.getParameter( "gameId" ).equals( Integer.toString(Global.GAME_ID2) ) ){
urlForReglement = request.getContextPath()+"/lottery/fr/rubbel/okidoki/pdf/reglement.pdf";
}else if( request.getParameter( "gameId" ).equals( Integer.toString(Global.GAME_ID3) ) ){
urlForReglement = request.getContextPath()+"/lottery/fr/rubbel/picco/pdf/reglement.pdf";
}
%>
<td id="reglementOfficiel" style="visibility:hidden;" align ="left" colspan="1"><a href="javascript
:#" onclick="showReglement('<%=urlForReglement%>');ret urn false;"><bean:message key="PlayGame.playInstGame.reglementOfficiel"/></a> </td>
<% if( gameType.equals("free") ) {%>
<td align="middle"><img src="<%= request.getContextPath() %>/images/demo_title.gif" border="0" alt="" align="absmiddle"></td>
<% } else {%>
<td align = "left">
<span style="left:120px" id="ticketNumberId"></span>
</td>
<% } %>
<% if( gameType.equals("free") ) {%>
<td align="right" colspan="1"><a href="javascript
:#" onclick="childWindowCloseFree();return false;"><bean:message key="PlayGame.playInstGame.quitPlay.Free"/></a></td>
<% } else {%>
<td align="right" colspan="1"><a href="javascript
:#" onclick="childWindowClose('<%=request.getContextPa th()%>');return false;"><bean:message key="PlayGame.playInstGame.quitPlay"/></a></td>
<% } %>
</tr>
</table>
<% } %>
</body>[/HTML]