By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

how to get value or radiobutton in ajax for asp page

P: 1
how to get value or radiobutton in ajax for asp page.i have got all value of text box and dropdown but uanble to get aheckbox value and radiobutton.....


sanding code to ajax
Expand|Select|Wrap|Line Numbers
  1.  
  2. function getVal() 
  3.  
  4.         rename=document.frm.rename.value;    
  5.         rephone=document.frm.rephone.value;        
  6.         reEmailid=document.frm.reEmailid.value;
  7.         product=document.frm.product.value;
  8.         requirement=document.frm.requirement.value;        
  9.         rtype=document.frm.rtype.value;
  10.         prlocation=document.frm.prlocation.value;
  11.         carpetarea=document.frm.carpetarea.value;        
  12.         req_source_retail1=document.frm.req_source_retail1.value;
  13.         req_retailsourceother1=document.frm.req_retailsourceother1.value;
  14.         other_retail_details=document.frm.other_retail_details.value;var strURL="post-_next.asp?rename="+rename+"&rephone="+rephone+"&reEmailid="+reEmailid+"&product="+product+"&requirement="+requirement+"&rtype="+rtype+"&prlocation="+prlocation+"&carpetarea="+carpetarea+"&req_source_retail1="+req_source_retail1+"&req_retailsourceother1="+req_retailsourceother1+"&other_retail_details="+other_retail_details;
  15.             var req = getXMLHTTP();        
  16.         alert(strURL);
  17.         if (req)
  18.         {        //alert("hi");    
  19.             req.onreadystatechange = function() 
  20.             {
  21.                 if (req.readyState == 4)
  22.                 { 
  23.                     // only if "OK"
  24.                     if (req.status == 200)
  25.                     {         //alert("hi");                
  26.                         document.getElementById('retail_post').innerHTML=req.responseText;
  27.                     } else {
  28.                         alert("There was a problem while using selection");
  29.                     }
  30.                 }                
  31.             }            
  32.             req.open("GET", strURL, true);
  33.             req.send(null);
  34.         }        
  35.     }
Mar 1 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.