What i want to do:
I want to, through a cross-domain pick a number from a php page and then with jquery use this as height on an iframe. page.php for an example outputs: 195
This is what i've done:
$(document).ready(function() {
$.get("http://domain.com/page.php", function(data){
$('#Myiframe').attr("height", data + "px");
});
});
And this works great in chrome, firefox and safari but not (i think you've guessed it) in IE 7/8 (don't have 9). Is there something about crossdomain protocol? I use this on my php page:
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: x-requested-with");
Does anyone know why this doesen't work in IE ?