topical media & game development

talk show tell print

basic-ajax-04-HiddenFramePost.js / js



  function initialize() 
  {
      var hiddenForm = document.getElementById('displayinfo');
      if(hiddenForm != null) 
      { 
          parent.frames[0].document.getElementById('information').innerHTML = hiddenForm.innerHTML; 
      }
  }
  
  function retrieveInformation() 
  {
          var city = document.getElementById("selectCity").value;
          var type = "";
          var input = document.getElementsByTagName("input");
          for (var i=0; i < input.length; i++)
          { 
              if (input.item(i).checked == true)
              {
                  type = input.item(i).value;
              }
          }
          top.frames["hiddenframe"].location = "http://localhost/BegAjax/Chapter4/retrieveHotelInformation.aspx";
  }
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.