RoseTaylor
New Member
I want to show a cross domain page to my site in ifram or div or as an object and what ever succeed with the full height of targeted site i don;t need any scroll After posting question people started asking for code.Now i've tried it with atleat 10 methods but that not lead the success so what is the benefit of sharing code that not lead to success (that i know).I am asking for different approach and does not want the to waste others and mine time over things already done by me What is the best practice to do this.I've used iframes with js to resize but no success with cross domain communicationI've used Object but not succeed with that.the view should be like this Click to seeWork 1 :I tried to fill a div with the content of iframe but that does not return body.innerHTML\[code\]function fillDiv(mdiv) { alert('kk'); alert('ping'); alert(document.domain); // = "autozone.com"; var doc = (mdiv.contentWindow || mdiv.contentDocument); if (doc.document) { doc = doc.document; doc.domain = "autozone.com"; } doc.domain = document.domain + ""; alert('kk1'); var content = doc.body; alert('kk2=' + doc.domain); document.getElementById('myDiv').innerHTML = "mohit<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />"; var mtext = content.innerHTML; alert("3Content: \n"); // Displays an Alert with the data from iframe }\[/code\]