News

Log In Sponsors
Partner Sites
online grocery eFoodDepot.com

Looking for <a href="http://www.americanfloraldistributors.com" target="_blank">wholesale flower</a> Visit our site today.



Re: New in Javascript. Please Help....



please find the other related par below: <% GlobalSettings theSettings = GlobalSettingsHandler.cacheRetrieve( session ); DeviceIDRange[] deviceIDRange = theSettings.getDeviceIDRange(); XMLLicenseBean licenseBean = new XMLLicenseBean(); XMLTagBean dup9450tag = new XMLTagBean(); boolean is9450 = licenseBean.retrieveLicense( XMLLicenseBean.f9450 ); boolean isInov = licenseBean.retrieveLicense( XMLLicenseBean.fInov ); boolean testTx9450 = 0 != theSettings.get9450DeviceIDRange().length; boolean testTxInov = 0 != theSettings.getQRDeviceIDRange().length; String testTx9450Value = ""; String testTxInovValue = ""; GlobalSettings.TestTx[] testTxs = theSettings.getTestTxs(); for ( int i = 0; i < testTxs.length; ++i ) { if ( true == DeviceIDRange.t9450.equals( testTxs[i].type ) ) { testTx9450Value = testTxs[i].txId; boolean isdup9450tag = dup9450tag.isAssigned9450Tag( testTx9450Value ); System.out.println("The value of isdup9450tag is: " + isdup9450tag + "\n\n"); } else if ( true == DeviceIDRange.tinov.equals( testTxs[i].type ) ) { testTxInovValue = testTxs[i].txId; boolean isdupQRtag = dup9450tag.isAssignedQRTag( testTxInovValue ); System.out.println("The value of isdupQRtag is: " + isdupQRtag + "\n\n"); } } %> ************************************* <% if (( true == is9450 ) || ( true == isInov )) { %> <tr> <td align="center" class="input-style-4">Test TX ID #</td> <td align="center" class="input-style-4">Type</td> </tr> <% } else { %> <tr> <td align="center" class="input-style-4"></td> <td align="center" class="input-style-4"></td> </tr> <% } %> <% if ( true == is9450 ) { %> <tr> <td width="100px" align="center" class="input-style-4"> <input type="text" name="<%="testTx"+DeviceIDRange.t9450%>" class="input-style-3" value="<%=testTx9450Value%>" size="5" maxlength="5" onChange="testTxCheck( this );"> </td> <td class="input-style-4">9450</td> </tr> <% } else { %> <input type="hidden" name="<%="testTx"+DeviceIDRange.t9450%>" value=""> <% } %> <% if ( true == isInov ) { %> <tr> <td width="100px" align="center" class="input-style-4"> <input type="text" name="<%="testTx"+DeviceIDRange.tinov%>" class="input-style-3" value="<%=testTxInovValue%>" size="5" maxlength="5" onChange="testTxCheck( this );"> </td> <td class="input-style-4">QR</td> </tr> <% } else { %> <input type="hidden" name="<%="testTx"+DeviceIDRange.tinov%>" value=""> <% } %> </table> </td> </tr> <% if ( true == isInov ) { %> <tr><td><hr></td></tr> <tr> <td align="center" class="input-style-4">Extend Repeater/Locator Ranges</td> </tr> <!-- Row for data entry --> <tr> <td align="center" height="18px"> <table width="420px" height="18" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="100px" class="input-style-3">Min </td> <td width="100px" class="input-style-3">Max </td> <td width="90px" class="input-style-3">Type </td> <td width="100px" class="input-style-3">Delete</td> </tr> </table> </td> </tr> <tr height="1px"> <td align="center"> <!-- div class="scroll" --> <table id="tagTable" width="420px" border="0" cellspacing="0" cellpadding="0"> <% for ( int x = 0; x < theSettings.getInovExtRange().length; x++ ) { GlobalSettings.InovExtRange ier = theSettings.getInovExtRange()[x]; String idFieldName = "inov.id." + x; String minFieldName = "inov.min." + x; String maxFieldName = "inov.max." + x; String deletedFieldName = "inov.del." + x; %> <tr> <input name="<%=idFieldName%>" type="hidden" value="<%=ier.getID()%>"> <td width="100px" class="input-style-4"> <div align="center"> <input disabled name="<%=minFieldName%>" type="text" class="input-style-3" value="<%=ier.getMin()%>" size="5" maxlength="5"> </div> </td> <td width="100px" class="input-style-4"> <div align="center"> <input disabled nname="<%=maxFieldName%>" type="text" class="input-style-3" value="<%=ier.getMax()%>" size="5" maxlength="5"> </div> </td> <td width="90px" class="input-style-4"><%=(ier.getType().equals(Device.RPR) ? "Repeater" : "Locator" )%></td> <td width="100px" class="input-style-4"> <div align="center"> <% if ( 0 != deletedFieldName.length() ) { %> <input type="checkbox" name="<%=deletedFieldName%>" value="true"> <% } else { %> &nbsp; <% } %> </div> </td> </tr> <% } // for ( int x = 0; x < theSettings.getInovExtRange().length; x++ ) %> <tr> <td width="100px" class="input-style-4">&nbsp;<div align="center"><input name="inovMinNew" type="text" class="input-style-3" value="" size="5" maxlength="5"></div></td> <td width="100px" class="input-style-4">&nbsp;<div align="center"><input name="inovMaxNew" type="text" class="input-style-3" value="" size="5" maxlength="5"></div></td> <td width="90px" class="input-style-4">&nbsp;<div align="center"> <select name="inovTypeNew"> <option value="" >Select </option> <option value="<%=Device.RPR%>" >Repeater</option> <option value="<%=Device.LOC%>" >Locator </option> </select> </div></td> <td width="100px">&nbsp;</td> </tr> </table> <!-- /div --> </td> </tr> <% } else { %> <input type="hidden" name="inovMinNew" value=""> <input type="hidden" name="inovMaxNew" value=""> <% } %> <!-- ends row for data entry --> <tr><td><hr></td></tr> <!-- Row for buttons --> <tr> <td align="center"> <table width="50%" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="30%" align="center"><input name="btnSave" type="button" id="btnSave" onClick="handleSave();" value="Save"> </td> <td width="30%" align="center"><input name="btnCancel" type="button" id="btnCancel" onClick="handleClose();" value="Close"></td> </tr> </table> </td> </tr><!-- ends row for buttons -->

Click here to read the whole forum topic