Display message while uploading

This is been talked about forever in this forum, but none the less, I can't find a satisfactory answer.
My situation is the following:
My webapp requires users to upload files to the server (actually, it is a file sharing app).
The uploading itself I have solved (jspSmartUpload or O'Reilly, or whatever, they do pretty much the same).
The problem is this: When users submit the form (for uploading) they do not get an answer from the server until the transfer is complete. For small files, this is now problem, as the answer comes fast. For bigger files it becomes an issue because the user (no matter how much I tell them not to) think that nothing is happening and push the stop button or close the browser.
I want to display an animated gif with a please wait message during the transfer process. The problem is how? The most promising idea I read about in my extensive search is using frames, one display's the message, the other processes the transfer but I can not make it work because the post is made to the html page wich has the frameset, not to the jsp that uploads itself, and since the pageContext changes, the uploading fails.
If anybody has figured out how to do it or has any idea, I will greatly appreciate it.
Ylan

Hello.
If you are not familiar with layers you will find difficult to implemented what i have just suggested...
However, i have implemented it and it works so here it is...
Use this javascript...
<script language="javascript">
<!--
function uploadWithMsg(){
     document.all["Layer1"].style.visibility = "visible";
     document.forms["theform"].submit();
</script>
here is the code for the layer
<div id="Layer1" style="position:absolute; width:200px; height:115px; left: 26px; top: 45; background-color: #FF3333; layer-background-color: #FF3333; border: 1px none #000000; visibility: hidden">Wait!!,
would you?</div>
Note that you can change its position and shape with left, top, width and height properties. Instead of that unpolite message you can please your gifs, tables, or any other common html code.
finnaly the form would look like this
<form name="theform" method="post" action="http://www.javasoft.com" enctype="multipart/form-data">
<p>
<input type="file" name="file">
</p>
<p>
<input type="submit" name="Submit" value="Submit" onclick="javascript: uploadWithMsg(); return;">
</p>
</form>
do not forget the return; it allows the function to submit the form.
... thats it.
If your wish to use the popUp window... you will have to place a button in it that close it.
Hope that helps
Bye
Otto

Similar Messages

  • Getting a Page Cannot be Displayed error while uploading a Contract Document in SAP E-sourcing for size 500mb

    Hi Guys,
    I am getting a Page can not be displayed error while uploading a COntract Document in SAP-E-soucing 7.0.
    Maximum Size set in Our SYSTEM is :9765MB.
    Approx size of the Document tried is more then 300MB.
    Appreciate your help on this.
    Regards
    Tarun

    Hi Tarun,
    Please check the below system properties using system user login
    attachments.maxSizeKB.buyers - "Maximum size in KB of a employer-attached attachment file"
    attachments.upload.enable.buyers-  " Enable/Disable uploading of attachments by internal users"
    Also Please check with other attachment, contracts related properties in the System.
    Let me know if this helps.
    Thanks,
    Raj.

  • Error message while uploading the flat file

    Hi Experts,
    I am getting the error message while uploading the flat file.
    Message class: MG
    Number: 147
    The message is: Several descriptions exist for the language JA.
    Please guide me why this error is occuring.
    Regards
    Akshay

    hi,
    how are you uploading the file and where ?
    u can use open dataset  , read dataset or gui_upload
    check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e92637c2cbf357e10000009b38f936/frameset.htm

  • Virus Found error message while uploading document in Document Library

    Hi,
    When uploading documents into the document library, I got a message "Virus Found" ERROR message.
    the installed  virus scanner is urrently unavailable.If the  problem persists, please contact your administrator.  
    How to resolve this issue? its in staging environment. in our test environment  we  never received this error message while uploading the message.
    help is appreciated.

    hi
    have you installed an antivirus app on server?
    Check this link
    https://support.microsoft.com/en-us/kb/2953311/
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Error message while upload excel file (with macro) to sap (iw28)

    While upload excel file to sap through iw28, i get error message (vb)
    u2022     i have to say that the excel file contain macro , with out the macro , work fine .
    u2022     The error display just in refresh command.
    the error message :
    Public Sub ALV_CUS_Exit()
    Dim objs As ChartObjects
    Dim obj As ChartObject
    Dim sheet As Worksheet
    Dim r As Range
    For Each sheet In Sheets
    Set objs = sheet.ChartObjects
    For Each obj In objs
    Set r = Sheets("RawData").UsedRange
    obj.Chart.SetSourceData Source:=r
    Next obj
    Next sheet
    End Sub

    hi,
    This is releated to the ABAP coding...There might be some ouput problem in the Abap list viewer...Pls check it with the ABAP consultant...
    Regards
    Priyanka.P

  • Displaying messages while running BEx queries.

    Hi Experts,
    Can any one explain me is there any possibility to display some popup messages while running BEx queries?
    Regards,
    Anusha

    Hi there,
    You can do taht with user exit variables with the code something like this:
      WHEN 'YOUR_VARIABLE'.
        if i_step = 2.
        LOOP AT eto_charsel INTO ln_charsel.
    *some validation of your own
          if ln_charsel-low NE '1'.
    *call function to send a message, in this case, an error message
             CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
               EXPORTING
                 i_class  = 'ERROR!'
                 i_type   = 'E'
                 i_number = '000'
                 i_msgv1  = 'Please connect again and'
                 i_msgv2  = 'use the Revision Layout'.
                 RAISE no_processing.
          endif.
        ENDLOOP.
        endif.
    Diogo.

  • Error Message While Uploading Clause List

    Hi ,
    I am trying  to create a clause list and when I try Upload a clause list, at step 2 of Process request it is uploading till 80 percent and throwing an error
    " There is a problem with the contract generation web service. Contract your system administrator.
    Can any one throw some light why it is throwing this message.
    See screen shot :
    Thanks,
    Roopesh.

    HI Roopesh,
    We have also faced the same issue earlier and it got resolved by restarting the contract gen web service. Please ask your basis team to restart the web service and check.
    Hope it helps.
    Thanks,
    Kushagra A

  • Error message while uploading?

    Whenever I try to upload songs to my ipod video, itunes gives me an error message and says it has to quit. I restored the ipod thinking that would fix it, but it did not fix the problem. Need help, please!

    I've tried on four separate occasions to order multiple prints using iPhoto 5.0.4 via a DSL connection and have gotten the exact same error message each time. Data uploads up to the 1.5 mB level and then gets hung up for 30 seconds or so followed by this same error message. But, on pressing "retry" the same thing happens again. I've not yet been able to effectively order prints since upgrading to this iPhoto version. Ideas? Advice please

  • Error message while uploading Pages Docs to Yahoo Mail

    I keep getting an error message when I try to upload any "Pages" documents to Yahoo Mail. Has anyone had this problem before? It is only allowing me to upload documents that I created on my microsoft word for mac free trail. Help! Thank you

    Welcome to Apple Discussions Abby
    A Pages document is actually a package, a special kind of folder that appears as a single file, but isn't. You can't e-mail a folder which is why Yahoo! mail isn't working. Apple Mail will automatically zip a folder, other e-mail clients don't, especially web-based e-mail. In the Finder, Control- or right-click on the Pages document & choose Create Archive… from the contextual menu. You will now have a zipped Pages document that you can attach to your e-mail & send.
    Your recipient must have Pages to be able to open your Pages file. If s/he doesn't, you can export the Pages document as Word or PDF & send that.

  • Getting Unexpected Error message while Uploading template

    Hi,
    I am updating one of the .*rtf* template. The origional size of the the template file is 49.6MB. However if I made any changes in the template file(even if I add/remove space) and save it, the template size increases to 80+ MB.
    And when I tried to upload this file, I'm getting the 'UnExpected Error'. Probably due to time out as file size is big.
    Does anyone faced the same issue? I tried updating file on different machines but still the template size increases dramatically. Help.
    Thanks and Regards,
    Ravindra

    hi,
    how are you uploading the file and where ?
    u can use open dataset  , read dataset or gui_upload
    check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e92637c2cbf357e10000009b38f936/frameset.htm

  • Error Messages While Uploading through LSMW

    I was uploading a file containing around 30000 line items through lsmw by using a recording of the transaction ie01. The upload is quite slow and it gives me an error that the "EQUIPMENT COULD NOT BE BLOCKED" or "LOCK TABLE OVER FLOW" or "RUNTIME ERROR" What do these errors signify? What is the mistake i am making?

    Dear ,
    Not a worry Equipment No table have capacity 30000 to 120000 entries. U can check it thr SE13 t code with table name here equi
    Regards,
    Avinash

  • Problem while displaying popup message while using inputfile component

    Hi
    I am using JDEV 11.1.1.2.0, using ADF i developed and application
    in my page i have a input file component, from which i am taking a csv file and reading it through valuechangeevent of inputfile component. I have used myfaces.trinidad-UploadedFile to get the selected file and read it using inputstream.
    I have put some validation check (validation check is done while reading the file using valuechangeevent of the inputfile component), while reading the file and incase i receive any error (validation mismatch), the reading of file stops ... and before doing that i used to display error message using below method:-
    public String ValidationCheck(String attrname, String attrvalue, int rownumber) {
    String msg="Validation error found in "+attrname+" with value "+attrvalue+" of row "+rownumber+" in the file. Please correct the file and retry/";
    FacesContext ctx = getFacesContext();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
    ctx.addMessage(null,fm);
    return null;
    i have used the same method to display message in other places where its showing correctly but fails in inputfile component.
    Please help me out how can display messages from inputfile component??
    Thanks
    Sudeep
    Edited by: SKD on Feb 21, 2012 12:02 PM
    Edited by: SKD on Feb 21, 2012 4:08 PM
    Edited by: SKD on Feb 21, 2012 4:11 PM

    It works fine for me (albeit on 11.1.2.1). Here is my complete test case:
    FileUploadTest.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:document title="FileUploadTest.jsf" id="d1">
        <af:form id="f1" usesUpload="true">
          <af:inputFile label="Label 1" id="if1" valueChangeListener="#{TestBean.vcl}"/>
          <af:commandButton text="commandButton 1" id="cb1"/>
        </af:form>
        <af:messages id="m1"/>
      </af:document>
    </f:view>TestBean.java:
    package view;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.share.logging.ADFLogger;
    public class TestBean
      private static final ADFLogger _LOG = ADFLogger.createADFLogger("view.TestBean");
      public TestBean()
      public void vcl(ValueChangeEvent valueChangeEvent)
        _LOG.severe("in the value change event");
        FacesContext ctx = FacesContext.getCurrentInstance();
        FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, "This is a message", "Message");
        ctx.addMessage(null, fm);
    }adfc-config.xml:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__1">
        <managed-bean-name>TestBean</managed-bean-name>
        <managed-bean-class>view.TestBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
    </adfc-config>John

  • I'm uploading a photobook I made to be published.  I need assistance in getting it to apple.  The book is assembled and gets to the end of uploading when I get an error message, an error occurred while uploading.  I have been trying all night.  Help!

    I'm uploading a photobook I made to be published.  I need assistance in getting it to apple.  The book is assembled and gets to the end of uploading when I get an error message, an error occurred while uploading.  I have been trying all night.  Help!

    Welcome to the Apple Community.
    I have seen previous versions mentioned in a pop up message before on iCloud.com, but I'm not really sure at all how it would help, as I couldn't get it to do anything.
    The best advice I have at this time is to back up your work on your iOS device by regularly saving it to iTunes, if anything goes wrong you can then either load it into the numbers app again on the device or recover it via iTunes on your computer.
    My syncs are immediate, I never get chance to see if it works in the background, sorry.

  • Display Do u want save changes or not? message while closing the window

    Hi All,
    I have one requirement.I developed one form that contains 4 windows.
    I entered in the 3rd window and i have made some changes but not saved.when i close 3rd window it is not giving any message like 'Do u want save changes?'after closing the 3rd window cursor will go to 2nd window.if i open 3rd window again it is propmting the message(Do u want save changes or not?).How can i get this message while closing the 3rd window?
    i have written the following code in app_custom body
    IF (wnd = 'WINDOW1') THEN
    app_window.close_first_window;
    ELSIF (wnd = 'WINDOW3') THEN      
    lv_wnd_status := get_window_property('WINDOW2',VISIBLE);
    IF lv_wnd_status = 'TRUE' THEN
         go_item('BLOCK2.ORDER_NUMBER');
         set_window_property ('WINDOW3', visible, property_false);
    ELSE
    app_window.close_first_window;
    END IF;
         ELSIF (wnd = 'WINDOW2')
    THEN
    lv_wnd_status := get_window_property('WINDOW3',VISIBLE);
    IF lv_wnd_status = 'TRUE' THEN
    set_window_property ('WINDOW2', visible, property_false);
    ELSE
    app_window.close_first_window;
    END IF;
         ELSE
    app_window.close_first_window;
    END IF;
    Can anyone give me some idea.
    Thanks in Advance
    Edited by: DhanaSurya on Apr 27, 2010 9:41 PM

    Iis this the only code which you used to hide/display window?
    Might be some navigation is happening in your form. Like if there is relationship between window2 and window3's block and when you access the window2 then you try to move to the next reocrd and then you are try to go to the WINDOW3's block.
    Or there is any CLEAR_BLOCK built-in bieng use in you form.
    -Ammad

  • Error 8 while upload the program : row 425 message

    Can any one answer this ?
    I am not using Any lower case letters any special characteristics in the flat file.
    But still i am getting the same error "Error 8 while upload the program : row 425 message "
    Thanks

    hi padma
    or chk this
    In case of the flat file datasource, when you assign flat file source system again, the system assign IS to the old transfer structure! Because of the same DS name.
    There are 2 remedies.
    1. Log off the system. During the current session the system may keep deleted IO, TRs, URs etc and propose them again. Log off should wipe deleted objects.
    2. If the #1 didn't help. - Recreate an infosource with a new name. Create all other structures as needed.
    reg
    ashwin

Maybe you are looking for