Why doesn't this form work when the button is clicked? It is inside an iframe. I sent the controls to an iframe from a different website. When I hover my mouse over the Resubmit button, I can see the correct url in my browser bar. (lower left) This is the same one as the save button. Does the fact that the Resbmit button is in an iframe create a problem? The green bar in my browser shows the page load quickly and vanishes doing nothing. Is this a security issue?
I was trying to use the Copy url to clipboard button to copy the selected url in the dropdown to the clipboard. Then the user could paste it into the Recipcocal url field in the form and click the Save button again. (see picture) The form is on the page with the iframe. The copy to clipboard button doesn't work either. I'm trying to get the selected item in the dropdown copied to the Reciprocal url textbox right before the Save button in the form. Again, the iframe controls including a dropdownbox, a label and a button are sent from a remote website to the page. When I clicked the button to try to copy the dropdown item to the web_recip I got an access denied error. How does one get around this?
<script type="text/javascript">
function copy()
{
var sel = document.getElementById("DropDownList1");
var text = sel.options[sel.selectedIndex].value;
// Assigning selected value of DropDownList to a hidden TextArea
document.getElementById("hdnTextBox").value = text;
// Creating text range from hidden TextArea's content
var CopiedTxt = document.getElementById("hdnTextBox").createTextRange();
// Copying the teat range to clipboard
CopiedTxt.execCommand("Copy");
//var out = parent.document.form1.getElementById("web_recip");
// out.value = text + "\n";
}
</script>
</body>
</html>
here is the php page which has the iframe outside the form tags.
Bookmarks