Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Button To Submit ASP Form

Status
Not open for further replies.

HomeAway

Programmer
Jun 6, 2003
36
0
0
AE
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=&quot;upload&quot; enctype=&quot;multipart/form-data&quot; method=&quot;POST&quot; action=&quot;complete.asp&quot; style=&quot;visibility: hidden&quot;>
<input type=&quot;file&quot; name=&quot;file&quot; size=&quot;20&quot;>
<INPUT TYPE=&quot;submit&quot; VALUE=&quot;Upload&quot;>
</form>

If i run the submit from the form and not through flash it works. Please help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top