aspose file tools*
The moose likes Servlets and the fly likes captcha is reloading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

captcha is reloading

Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
if i select the country value choose other. my captcha is reloading what is the problem can any body give solution

my registration.jsp

java script
function fnchange()
{
if(document.frmregistration.cmbstate.value=="oth")
{
document.getElementById("txtother").style.display="block";
}
else
{
document.getElementById("txtother").style.display="none";
}
}

function fnchange1()
{
if(document.frmregistration.cmbcountry.value=="oth")
{
document.getElementById("txtcountry").style.display="block";
}
else
{
document.getElementById("txtcountry").style.display="none";
}
}

<tr>
<td align="left" valign="middle">State <span class="man_field">*</span></td>
<td align="left" valign="middle">
<select name="cmbstate" class="cmbbox" onchange="fnchange();">
<option value="0">Select</option>
<option value="ap">Andhra Pradesh</option>
<option value="ar">Arunachala Pradesh</option>
<option value="assam">Assam</option>
<option value="bi">Bihar</option>
<option value="hp">HimachalaPradesh</option>
<option value="jk">Jammu And Kashmir</option>
<option value="jar">Jharkand</option>
<option value="kar">KarNataka</option>
<option value="ker">Kerala</option>
<option value="kol">Kolkatta</option>
<option value="mp">MadhyaPradesh</option>
<option value="mah">Maharastra</option>
<option value="or">Orissa</option>
<option value="pun">Punjab</option>
<option value="raj">Rajasthan</option>
<option value="tn">TamilNadu</option>
<option value="up">UttarPradesh</option>
<option value="oth">Other</option>
</select>
</td>
</tr>

<tr id="txtother" style="display:none">
<td>  </td>
<td align="left" valign="middle">
<input type="text" name="txtstateother" value="" class="textbox2">
</td>
</tr>



<tr>
<td align="left" valign="middle">Country <span class="man_field">*</span></td>
<td align="left" valign="middle">
<select name="cmbcountry" class="cmbbox" onchange="fnchange1();">
<option value="0">Select</option>
<option value="af">Afghanistan</option>
<option value="chn">China</option>
<option value="jap">Japan</option>
<option value="in">India</option>
<option value="pak">Pakistan </option>
<option value="oth">Other</option>
</select>
</td>
</tr>
<tr id="txtcountry" style="display:none">
<td>  </td>
<td align="left" valign="middle">
<input type="text" name="txtcountryother" value="" class="textbox2">
</td>
</tr>



<tr>
<td align="left" valign="middle" >Enter these above Character <span class="man_field">*</span><br/>
</td>
<td align="left" valign="middle"><input type="text" name="txtverificationcode" class="textbox2" value="" maxlength="50" ></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="btnSubmit" class="button2" value="Submit"> <input type="reset" name="btnReset" class="button2" value="Reset">
</td>
</tr>






tahnks in advance


SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: captcha is reloading