Simple problem, Im trying to make a file uploader using javascript and an iframe but im getting security exceptions whenever i try to access anything inside the iframe .
Is there any way to trick my browser into thinking that the document is running on a domain and not localy or a way to bypass these security exceptions.
function GetID() {
alert('ID ' + document.iframe.uploaderform.url.value)
document.iframe.uploaderform.url.value = 'the url';
}
Question
bob21
Simple problem, Im trying to make a file uploader using javascript and an iframe but im getting security exceptions whenever i try to access anything inside the iframe .
Is there any way to trick my browser into thinking that the document is running on a domain and not localy or a way to bypass these security exceptions.
function GetID() { alert('ID ' + document.iframe.uploaderform.url.value) document.iframe.uploaderform.url.value = 'the url'; }This is the function im trying to run.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts