I'm trying to use the fileupload. I had it working, i was using a save button to do the save of the file to the location i wanted. Now we are trying to have the page display a animated GIF while the file is being uploaded. So i tried adding a call to a java script function that would make a image visable. That only half works in that the GIF doesn't do it's animation while the file is uploading.
Next i tried using an Anthem button. i was able to get the Animated GIF to diplay using the PreCallBackFunction property that called a java script that would display the image, but when i do this... the click event that fires goes through and tries to run the same save event i used above (the one that worked). but now it doesn't work because the fileupload.filename = "". so when i'm using the anthem button, the file upload filename isn't coming through. I tried just for a test and was able to get text box information that i had typed in just before hitting the anthem button, but it won't grab the fileupload name...
In a javascript function i can see what the file name is, but i can't figure out how to get the javasript function to fire from vb and return the value.
so, hoping someone can tell me either
1. how to get the fileupload.filename to work with Anthem button
2. how to get the return value of a java function into a vb variable (here's my java script function )
function CallJava(){
return document.form1.fuDocument.value; 3. how to get a normal save asp:button to not stop the animated gif from moving while the file is being saved ( i did the animated gif showing through a java script as well)
function AnthemTest() {
document.getElementById('Image1').style.display = '';
document.getElementById('Image1').style.visibility = 'visible';
}
thanks for the help
shannon