468,541 Members | 1,758 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,541 developers. It's quick & easy.

how to get value or radiobutton in ajax for asp page

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
0 1377

Post your reply

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

Similar topics

4 posts views Thread by Seguros Catatumbo | last post: by
1 post views Thread by abhilash12 | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.