Hi there,
I have a flash movie that allows a user to upload a photo to customize his "home" page. In my flash movie i have a button that when clicked runs the following
getURL("javascript:submitIT()"
;
then inside my html page i have a javascript function for submitIT as follows
function submitIT(){
document.upload.submit() -- where upload is my form name.
}
everytime i run this i get an access denied error on that line. All the form does is post the file path to my ASP page where i deal with the upload and save of the file.
<form name="upload" enctype="multipart/form-data" method="POST" action="complete.asp" style="visibility: hidden">
<input type="file" name="file" size="20">
<INPUT TYPE="submit" VALUE="Upload">
</form>
If i run the submit from the form and not through flash it works. Please help.
I have a flash movie that allows a user to upload a photo to customize his "home" page. In my flash movie i have a button that when clicked runs the following
getURL("javascript:submitIT()"
then inside my html page i have a javascript function for submitIT as follows
function submitIT(){
document.upload.submit() -- where upload is my form name.
}
everytime i run this i get an access denied error on that line. All the form does is post the file path to my ASP page where i deal with the upload and save of the file.
<form name="upload" enctype="multipart/form-data" method="POST" action="complete.asp" style="visibility: hidden">
<input type="file" name="file" size="20">
<INPUT TYPE="submit" VALUE="Upload">
</form>
If i run the submit from the form and not through flash it works. Please help.