topical media & game development
basic-ajax-04-HiddenFrame.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 = "retrieveHotelInformation.aspx?city=" + city + "&type=" + type;
}
(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.