Click here to Skip to main content
15,884,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello Until now i opened pop up window after i do post requset from from :

function OpenWindowWithPost(url, windowoption, name, params) {

                    var form = document.createElement("form");
                    form.setAttribute("method", "post");
                    form.setAttribute("action", url);
                    form.setAttribute("target", name);
                    for (var i in params) {
                        if (params.hasOwnProperty(i)) {
                            var input = document.createElement('input');
                            input.type = 'hidden';
                            input.name = i;
                            input.value = params[i];
                            form.appendChild(input);
                        }
                    }
                    document.body.appendChild(form);
                    //note I am using a post.htm page since I did not want to make double request to the page

var hDipositWin = window.open(url, name, windowoption);
                    form.submit();
                    document.body.removeChild(form);


and it work well , now i wont do the same action in iframe
how i do it ?
i tray :
$('#myIframeContiner').append("<iframe src='" + url + "' width='80%'></iframe>");


but it not posted i think how to do this ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900