The problem is I'm using an iframe to process a login form via POST over https, but the parent hosting the iframe is http (although in the same domain)
is this doable?
I can't test this quite yet because I can only use https in our staging environment.
Thanks
function process_form(f){
var l = $("iframe#loginFrame");
if(l.length==0){
f.attr("target","loginFrame");
$('<iframe src="/player.htm?ajax=1"'+(!_DBG?' class="hide"':'')+' id="loginFrame" name="loginFrame"></iframe>').prependTo('body');
$("iframe#loginFrame").load(function() {
var u = this.contentWindow.location;
if(String(u).indexOf("confirm")>=0){
change_form(1);
}else if(u!=this.src){
change_form(0);
}
log(u);
log(this.src);
});
}else{
warn("Frame already exists!");
}
change_form(-1);
setTimeout(function(){ f.submit();},500);
log(f);
}