topical media & game development
basic-ajax-04-HiddenIFrame.js / js
function createiframe()
{
var iframe = document.createElement("iframe");
iframe.style.border = "0px";
iframe.style.width = "0px";
iframe.style.height = "0px";
document.body.appendChild(iframe);
}
function initialize()
{
var hiddenForm = document.getElementById('displayinfo');
if(hiddenForm != null)
{
parent.currentframe.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[1].location = "retrieveHotelInformation2.aspx?city=" + city + "&type=" + type;
}
function appendDiv() {
//var div=doc.createElement("div");
//div.id = "displayinfo";
//doc.body.appendChild(div);
}
(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.