hi,
1) This is working on IE 7 now i am using mozilla firefox4.42 inthis its not working javascript,
2)where can i find extras in mozilla,......
(to find my javascript errors) ?
Thanks ,
<html:html>
<html:base/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<link rel="stylesheet" href="../../css/common.css" type="text/css">
<link rel="stylesheet" href="../../css/tabs.css" type="text/css">
<script language="javascript" src="../../js/tabs.js"></script>
<script language="javascript" src="../../js/module.js"></script>
<!-- [END] DO NOT REMOVE -->
<!-- [START] PUT CUSTOM JAVASCRIPT HERE -->
<script language="javascript">
function BLfun()
{
var dscptVal = document.all.dscpt.value;
if(dscptVal=='001'||'002'||'003')
{
document.all.dscpt.disabled=true;
}else{
document.all.dscpt.disabled=false;
}
document.all.dscpt.value=dscptVal
var dealeridVal = document.all.dealerid.value;
if(dealeridVal=='dealerid')
{
document.all.dealerid.disabled=true;
}else{
document.all.dealerid.disabled=false;
}
document.all.dealerid.value=dealeridVal
}
var dealerid = new keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ','Alpha-numeric input only.');
var dealinit = new keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ','Alpha-numeric input only.');
var dealername = new keybEdit('abcdefghijklmnopqurstuvwxyz ','Alphabets input only.');
var rank = new keybEdit('01234567890','Numeric input only.');
void function setEvents() {
document.getElementById(dealerid)onkeypress = new Function('editKeyBoard(this,dealerid)');
document.all.dealinit.onkeypress = new Function('editKeyBoard(this,dealinit)');
document.all.dealername.onkeypress = new Function('editKeyBoard(this,dealername)');
document.all.rank.onkeypress = new Function('editKeyBoard(this,rank)');
}
</script>
<!-- [END] PUT CUSTOM JAVASCRIPT HERE -->
</head>
<body onLoad="javascript:setEvents()">
<html:form action="/X33" method="post">
<%
randGen rg=new randGen();
%>
<!-- [START] SAFE TO EDIT -->
<input type="hidden" name="ejfno" value="<%=rg.myMethod ()%>"/>
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td class="tableheader" colspan="3">Dealer Creation</td>
</tr>
<tr>
<td class="redtext" colspan="3"><html:errors/></td>
</tr>
<tr>
<td width="24%" class="labeltext">Transaction Code</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="transactioncode" styleClass="textfield" size="3" maxlength="3" value="X33" readonly="true"/>
<html:select property="dscpt" styleClass="dropdown" value="<%=(String)session.getAttribute("dscpt_val" )%>">
<html:option value="">Please Select</html:option>
<html:option value="001">001 - Create</html:option>
<html:option value="002">002 - Update</html:option>
<html:option value="003">003 - Delete</html:option>
</html:select>
</td>
</tr>
<tr>
<td width="24%" class="labeltext">Dealer's ID</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="dealerid" styleClass="textfield" size="20" maxlength="20" value="${X33.dealerid}" onblur="getRimData(document.forms[0], '/ILICTreasury/banker-web/X33.do', this, 'IX33001')"/>
</td>
</tr>
<tr>
<td width="24%" class="labeltext">Dealer's Initials</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="dealinit" style ="background-color: #FFFFCC" styleClass="textfield" size="20" maxlength="30" value="${X33.dealinit}" readonly="true"/>
</td>
</tr>
<tr>
<td width="24%" class="labeltext">Dealer's Name</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="dealername" style ="background-color: #FFFFCC" styleClass="textfield" size="40" maxlength="30" value="${X33.dealername}" readonly="true"/>
</td>
</tr>
<tr>
<td width="24%" class="labeltext">Rank</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:select property="rank" styleClass="dropdown" value="${X33.rank}">
<html:option value="">Please Select</html:option>
<html:option value="01">01-SENIOR DEALER</html:option>
<html:option value="02">02-JUNIOR DEALER</html:option>
</html:select>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr align="center">
<td colspan="3">
<html:button property="submitbutton" styleClass="button" value="SUBMIT" onclick="doSubmit(document.forms[0], '/ILICTreasury/banker-web/X33.do','UX33')"/>
<html:reset property="reset" styleClass="button" value="CLEAR"></html:reset>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>