• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

i am using 2 radio buttons when i am clicking 2nd radio button the page will be refreshing  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
function getstateList(){
var radioValue = document.PortinMspForm.portInType.value;
alert("radioValue:::"+radioValue);


document.PortinMspForm.action="mspportinmax.do?dispmethd=countrystatelist";



document.PortinMspForm.submit();

   
}




function showOrHide(val){
/*var ifno =document.getElementsByName("portInType");

for(var x=0;x<ifno.length;x++){
name = ifno[x].getAttribute("name");*/
//alert("val::::"+val);
if(val=='1'){
document.getElementById("ifno1").style.display='block';
document.getElementById("ifno2").style.display='none';



}
else{
document.getElementById("ifno1").style.display='none';
document.getElementById("ifno2").style.display='block';


}

}


<tr>

<td colspan="2" align="center" class="fieldLabel" width="100%" >


<input type="radio" name="portInType" value="1" onclick="javascript:showOrHide(1)" checked="checked"/>
<bean:message bundle='<%=session.getAttribute("pageBundle").toString()%>' key="label.External"/>
<input type="radio" name="portInType" value="2" onclick="javascript:showOrHide(2);"/>
<bean:message bundle='<%=session.getAttribute("pageBundle").toString()%>' key="label.Internal"/>

</td>
</tr>

<tr >
               <td width="24%" align="<%= session.getAttribute("pageRight")%>" class="fieldLabel"  valign="middle"><bean:message bundle='<%=session.getAttribute("pageBundle").toString()%>' key="label.portin.country" />: </td>
               <td width="26%" valign="middle">
             
               <nested:present name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.countryList">
  <html:select tabindex="7" size="1" property="country" styleClass="field"  onchange= "Javascript:getstateList();javascript:selectPortInType();">
<bean:define id="countrylist" name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.countryList" type="java.util.List" />
<html:options collection="countrylist" property="key" labelProperty="value" />
               </html:select>
   </nested:present>  
         
               </td>
              <td width="20%" align="<%= session.getAttribute("pageRight")%>" class="fieldLabel" valign="middle"><bean:message bundle='<%=session.getAttribute("pageBundle").toString()%>' key="label.portin.state" />: </td>
              <td width="30%" valign="middle" class="field">
               <html:select size="1" property="state" styleClass="field">
 <bean:define id="statelist" name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.stateList" type="java.util.List" />
 <html:options collection="statelist" property="key" labelProperty="value" />
     </html:select>
              </td>
           </tr>

<tr>
    <td>
    <table  class="searchBox" width="100%" border="0" cellspacing="0" cellpadding="0" align="center">  
    <nested:present name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails">
    <nested:notEmpty name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails">
    <!-- <tr>
    <td colspan="4" > </td>
    </tr> -->
    <tr id=ifno1  style= "display: block;"name="ifno">
               <td width="25%" align="<%= session.getAttribute("pageRight")%>" class="fieldLabel" valign="middle"><bean:message bundle='<%=session.getAttribute("pageBundle").toString()%>' key="label.portin.currentServeProvider" />: </td>
               <td width="77%" valign="middle">
                <html:select size="1" property="serviceProvider" styleClass="field">
  <nested:present name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails">
<bean:define id="serviceProviderDetails" name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails" type="java.util.HashMap" />
<html:options collection="serviceProviderDetails" property="key" labelProperty="value" />
</nested:present>
</html:select>                                
               </td>
             
     
             </tr></nested:notEmpty></nested:present>
   
   
   
    <nested:present name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails1">
    <nested:notEmpty name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails1">
   
           <tr id=ifno2 style="display: none;" name="ifnos">
               <td width="25%" align="<%= session.getAttribute("pageRight")%>" class="fieldLabel" valign="middle"><bean:message bundle='<%=session.getAttribute("pageBundle").toString()%>' key="label.portin.currentServeProvider" />: </td>
               <td width="77%" valign="middle">
                <html:select size="1" property="serviceProvider" styleClass="field">
  <nested:present name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails1">
<bean:define id="serviceProviderDetails1" name="VoyagerSession" property="accountSummaryInfo.mspSummaryInfo.portinMobileInfo.serviceProvidersDetails1" type="java.util.HashMap" />
<html:options collection="serviceProviderDetails1" property="key" labelProperty="value" />
</nested:present>
</html:select>                                
               </td>
             
     
             </tr></nested:notEmpty></nested:present>


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!