View Single Post
Join Date: Mar 2008
Posts: 36
Reputation: lonestar23 is an unknown quantity at this point 
Solved Threads: 0
lonestar23 lonestar23 is offline Offline
Light Poster

Re: Problem with Radio Button error "[object HTMLInputElement]"

 
0
  #3
Sep 10th, 2008
The code that ended up working for me is below. I have included only the ajax javascript Thanks to all for your help!

  1.  
  2. var settings = getXmlHttpRequestObject(); function savePreview() {
  3. if (settings.readyState == 4 || settings.readyState == 0) {
  4.  
  5. var car = escape(document.getElementById('car').value);
  6.  
  7. for (index=0; index < document.gMoney.searchMe.length; index++) {
  8. if (document.gMoney.searchMe[index].checked) {
  9. var radioValue = document.gMoney.searchMe[index].value;
  10. break;
  11. }
  12. }
  13.  
  14.  
  15. settings.open("GET", 'abc.php?searchMe=' + radioValue + '&car=' +car, true);
  16. settings.onreadystatechange = handleSettings; settings.send(null);}}
  17. function handleSettings() { if (settings.readyState == 4) {
  18. }
  19. }
Reply With Quote