fileupload question

Last post 02-09-2007 12:27 PM by jvcoach. 1 replies.

Sort Posts:

  • fileupload question

    02-09-2007, 11:48 AM
    • Member
      16 point Member
    • jvcoach
    • Member since 01-28-2007, 9:29 PM
    • Posts 40

    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 

  • Re: fileupload question

    02-09-2007, 12:27 PM
    • Member
      16 point Member
    • jvcoach
    • Member since 01-28-2007, 9:29 PM
    • Posts 40

    ok.. i figured out with JavaScript how to get the filename to work.. but here is the problem...

     

    i got the javascript to work with the Anthem button to get the filename, but when i go to do the SaveAs on the fileupload, there is no file there to upload.. so i'm thinking javascript isn't going to help me until i figure out how to get the Anthem button to be aware of what is there...

    hope that can give more info to helping me solve my problem

    thanks

    shannon 

Page 1 of 1 (2 items)