Progress bar problem in IE with on demand application call

I have several on demand application processes that I call from javascript. The application processes in turn call pl/sql procedures. Some of the procedures take up to 10 seconds to complete and while they are running, the screen just appears to freeze so the user does not know that they are actually running. I would therefore like to add some kind of a progress bar or hourglass or some indication that things are happening.
So I found the instructions in Re: Display of Hourglass When Page is processing . This works great in Firefox, but not in IE.
My Footer text:
<style> #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:50%;top:20%;position:absolute;border:2px solid #666;background-color:#FFF;}
</style>
<div id="AjaxLoading" style="display:none;">..Processing..
<img src="#IMAGE_PREFIX#processing3.gif" id="wait" />
</div>
My javascript:
function create_invoice(pMilestoneNumber){
var agree=confirm("Are you sure you want to bill this Invoice?");
var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=P110_CREATE_INVOICE',$v('pFlowStepId'));
if (!agree)
     return;
html_ShowElement('AjaxLoading');
get.addParam('x01',pMilestoneNumber);
gReturn = get.get();
alert(gReturn);
get = null;
doSubmit();
In Firefox, the Progress bar appears immediately after the user clicks ok to the confirm request. In IE, it does not appear until the application process returns with the return message.
Any help would be greatly appreciated.

Thanks for your reply. You are right, part of the code got stripped off, I guess I failed to use the code brackets before and after. Here is is again using the code brackets:
Javascript:
<script language="JavaScript" type="text/javascript">
function create_invoice(pMilestoneNumber){
var agree=confirm("Are you sure you want to bill this Milestone?");
var get = new
htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=P110_CREATE_INVOICE',$v('pFlowStepId'));
if (!agree)
     return;
html_ShowElement('AjaxLoading');
get.addParam('x01',pMilestoneNumber);
gReturn = get.get();
alert(gReturn);
get = null;
doSubmit();
</script>Footer:
<style>   #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:50%;top:20%;position:absolute;border:2px solid #666;background-color:#FFF;} 
</style> 
<div id="AjaxLoading" style="display:none;">..Processing..<br /><img src="#IMAGE_PREFIX#processing3.gif" id="wait" />
</div>I was using IE8, but I found an another computer with IE7 and I have the same problem there.
My javascript code throws up a confirm message and as soon as a hit ok, Firefox brings up the progress bar and it stays up until the alert message comes back with the return from the application process. Just the way I want it. In IE, the screen just freezes after I hit ok (the same way as if you don't have a progress bar at all), but then when the alert message comes up with the return from the application process, the progress bar comes up (a little late....).
Do you have any suggestion as to what my problem may be?

Similar Messages

  • Youtube progress bar problem on ipad

    When playing a YouTube video on my ipad air, the progress bar is now appearing higher up in the video and obstructs it.  Normaly, and on my imac, it appears just above the controls section on the bottom. 

    How are trying to watch this YouTube video? With Safari? Or with the YouTube app?
    I see no problems viewing YouTube videos on my iPad using the YouTube app. The progress bar shows at the bottom of the screen as the video starts and it quickly faded away.

  • Jni using progress bar problem

    Hi
    i am new in jni application actually my project is j2ee(servlet,jsp) based. In my one of project module we need to call vb ocx for large processing in background so it is time taking and my framwork is pure mvc based so how i have to show
    progress bar please give me some idea....
    Thanks in advance and sorry for english
    ni

    There's no solution to that in the JNI or Java side of things. If the VB has control, only the VB knows what its progress is, so only the VB can display it. So change it to do that.

  • Preloader progress bar problems

    If you've got a second, go to
    http://www.madhouseent.net/
    My progress bar gets to the 50% mark and then loads the site.
    That's not the end of the world, but someone on a slow connection
    might give up because it looks like it's loading slower than it
    really is.
    The loading bar graphic is the correct size.
    Here's my code for the first frame and the second frame:

    Well, it looks like the full width of your loading bar is
    around 200 pixels. Not 100 which is what you're multiplying your
    percent by here.
    Try this instead.
    var fullLoaderBarWidth = (whatever the actual full width of
    your loader bar should be at 100%).
    (first frame)
    bytes_loaded = Math.round(this.getBytesLoaded());
    bytes_total = Math.round(this.getBytesTotal());
    getPercent = bytes_loaded/bytes_total;
    this.loadBar._width = getPercent*fulLoaderBarWidth;
    this.loadText = Math.round(getPercent*100)+"%";
    if (bytes_loaded == bytes_total) {
    this.gotoAndPlay(3);
    (second frame)
    this.gotoAndPlay(1);

  • No sound or progress bar movement in iTunes with upgrade to Vista Ultimate

    I just upgraded my computer to Vista Ultimate and my itunes does not play sound, although other applications on the computer do. Just in case, I downloaded the latest driver for my sound card. Also, the progress bar at the top does not move, although itunes shows that the song is playing. I have tried uninstalling and reinstalling several times as recommended by the ITS people at my school to no avail. I backed up my music and completely wiped everything itunes and then reinstalled but it's still doing the same thing. Please Help!
    iPod 30 GB Windows Vista

    Hello
    Because you wrote here already third time I have tested clean Vista installation on Qosmio G30-126 but the same PQG32E like yours.
    I have installed Vista ultimate and the sound works without installing sound driver. Anyway install sigmatel sound driver. Please after Vista installation install Value Added Package at first. After doing this install:
    - display driver,
    - sound driver,
    - Synaptics TouchPad Driver
    - Software Modem and so on.
    I hope everything will be OK.
    Bye and good luck!

  • Flash Player & Flash progress bars problem

    Hi.
    I'm rather desesperate here.  I have the latest version of Flash Player with the latest version of Mozilla Firefox (3.5.3).  Wherever I try to upload a file on a website that uses a Flash component to show the progress, it simply goes up to 100% under a second for a 15MB file.  This is my latest Speedtest.net :
    http://www.speedtest.net/result/574890835.png
    It's IMPOSSIBLE to upload anything over 2MB instantly with that kind of connection.  Even if it's a really good one.
    I've tried anything and everything; even a reformat (two weeks or so ago) and it did NOT solve the problem.  So, I'm pretty sure that the problems lies in either one of those software/code :
    - HTML 5
    - Flash Player
    I don't know if you guys can solve the problem but I just hope you can.  It's really annoying because a majority of file-hosting websites use Flash-based uploaders.  I've been in multiple forums in search for help but nobody seems to be able to solve my problem and in which seem to be unique. The problem also occurs and Internet Explorer 8 and Chrome on my end.  So, my problem isn't browser specific.  The problem also occurs on Windows 7 RC.
    My (modest) machine :
    Intel Core 2 Duo E6600 2.4GHz
    2 GB of DDR2 667MHz Ram
    nVidia GeForce 8500GT 512MB
    ~1.3TB of Hard drive (across 4 hard drives)
    Windows Vista Home Premium FR (Genuine) & Windows 7 RC (Build 7100) [dual-boot]
    Thank you for your help in advance.

    Please help!
    If you want more details, please, ask them to me!

  • I am having serious pixelation problems in yosemite with my CS6 applications

    i recently purchased a new mac with yosemite on it and tried to install my CS6 design standard and all the applications are running in a horribly pixelated manor. I ran all the updates and the issue was resolved in illustrator and photoshop but not in anything else. does anybody know what to do?

    There is nothing to do. CS6 apps do not support Retina displays except for PS and AI.
    Mylenium

  • Problem in creating progress bar in form6i

    dear all
    how are you?
    i created a progress bar but i face a problem.
    in the when button pressed trigger i write this
    declare
    cursor MY_cur is
    select col1,col2,col3
    from base_table;
    vWIDTH number :=0;
    vSTEP NUMBER := 0;
    begin
    SELECT COUNT(1)
    INTO vROWS
    FROM base_table;
    vSTEP := 300 / vCOUNT;
    show_view('progress_bar_stack');
    for i in MY_cur is
    loop
    insert int my_tab(c1,c2,c3)
    values(i.col1,i.col2,i.col3);
    set_item_property('progree_item',width,width+vSTEP);
    synchronize;
    end loop;
    end;
    I ASK IS THIS A GOOD WAY TO CREATE A PROGRESS BAR OR NOT . AND IS THERE ANOTHE WAY TO CREATE A PROGRESS OTHER THAN THIS.
    PLEASE IF YOU HAVE A WAY , WRITE IT .
    TAREK FATHI
    2005 05 31

    my way of implementig a progress bar is:
    window wn_pbar with canvas cn_pbar and a button bt_pbar. The Button has a width of 1 pixel and max 300.
    now I have a procedure pbar.init (P_<wn-name>, P_<max-value>) which writes a window-header in the wn_pbar and a max-value in a package-variable.
    another function named pbar.next (P_<value> DEFAULT 1) increments an internal variable act-value. This act-value is initially 0 and can increment to max-value. The act-value/max-value is the percentage of the width of the button. e.g. 1200/2000 means 60% -> 60% of width 300 = 180 width for the button.
    another procedure pbar.destroy deletes the variables, closes the window wn_pbar and goes back to the item, where the focus was before the pbar started.
    with this steps you can easily group these objects in a objectgroup and inherit it to all forms you need a pbar. the sourcecode is still in a library pbar.pll which you have to attach.
    it looks like your functionality, but you can use it anywhere you need it.
    try it
    Gerd
    PS: This is a very useful method for forms client/server. In the web you have to check, that the button not refreshes to open.... the more network-roundtrips, the fewer performance...

  • How to use thread only for progress bar.....

    Hello,
    I am working on an application which is taking time to load. Now I want to use a progress bar to tell the user of the application that It is taking time to load. How to do it... I read the Java swing tutorial and went through the example. Please tell me what to do. Because I am unfamiliar with Threads and I am not using thread anywhere in my application.

    You are using threads. All Java execution occurs on threads. Write a Java GUI and you're in a multithreaded environment - there's no way out of that.
    If your "application is a complex one" then you would be better advised to understand threads than to try and pretend that they don't exist. For a start, if you don't think you're using threads then you're destined to run in to all sorts of problems as regards an unresponsive GUI, as you're probably now finding out.

  • HT4859 tryin restore my iphone but no luck the progress bar stays in same spot!

    tryin restore iphone but no luck thhe progress bar dosent move! help!

    Hi,
    I have the exact same problem as you with my daughters iPad 2. Have you found a solution?
    My daughters iPad 2 has been upgraded to IOS 7 for a while, and she complained about it sometimes turning off, restarting. Yesterday it could not be turned on at all. It was fully charged. She has been looking after it - no physical damage. Before upgrading to IOS 7 there were never any problems.
    Holding the home and sleep button for 10 or 15 seconds did nothing - black screen.
    Although she complained, we decided to wipe the whole thing, and start on a fresh. Could not enter recovery mode (pressing home, while attaching USB). Pressing home and sleep button for 10 seconds while connected to iTunes, causes iTunes to state that there is an iPad connected that needs to be restored.
    iTunes retrieves the the 7.0.4 package and starts the update. However when the Apple logo and progress bar appears nothing happens. iTunes just states "waiting for iPad". I have left it for periods of 1 hour, 2 hours or even 6 hours without any movement what so ever on the progress bar. Have tried with three different PC's - all with same result.
    If I keep the home and sleep button pressed for 10 seconds during the "stuck" update, the process starts over again - unpacking the 7.0.4 package, starting the upgrade and then nothing! Apple logo and progress bar not moving.
    Just checked my warranty - and it was bought in September 2011, so that is no solution. We are using PC's with Windows 7 64-bit with Windows update turned on and no other problems.
    Hope somebody can help :-)
    /Philip

  • Progress Bar visibility issue

    I'm a bit of a newbie when it comes to components, but I'm
    hoping there's an easy answer that I'm simply missing.
    I have 4 nested files, the first and third of which are files
    that contain sections of loadable content (menu pages,
    essentially). I've followed some simple tutorials about how to make
    the progress bars disappear once a file completely loads and all
    seemed to be working fine when I previewed the third file (a
    sub-menu) in the chain, but when I previewed the first file (the
    main menu), the progress bars that were working as they should the
    third file are still visible once its respective files load.
    The error only seems to take place in the first file and only
    in relaton to the progress bars in the third file, although the
    parameters and actionscript for all the progress bars follow the
    same formula. Is there a reason why a progress bar that disappears
    in one file remains visible in a file further up the chain and if
    so, is there any way to correct this?

    Do While Me.txtProgress.Width <> FullLength
        Me.txtProgress.Width = Me.txtProgress.Width + 25
        PercentComplete = (Me.txtProgress.Width / FullLength) * 100
        Me.txtStatus.Caption = PercentComplete & " % Complete"
        Call Pause(Timing)
    Loop
    If Me.txtProgress.Width = FullLength Then
        Me.CmdClose.Enabled = True
    End If
        retval = SysCmd(acSysCmdSetStatus, "Connecting to previous Database")
    For Each tdf In dbs.TableDefs
        If tdf.Connect <> "" Then
        tdf.Connect = ";DATABASE=" & strDatabaseName & (";PWD=zujan")
        tdf.RefreshLink
    End If
        Next tdf
    Screen.MousePointer = 0
    Hi Anuj,
    What I see in your code is that you first have your progress bar run from 0 to 100%, and after that step through the TableDefs to connect.
    I assume you want to increase the progress bar during the connecting process. So you have to merge the two loops. First you count the total number of TableDefs (your 100%), and then increment Me.txtProgress.Width for each tdf in equal steps.
    Instead of building the progress bar on "each" form, you could also make a dedicated progress bar form. At the start of a loop you open the form, and assign the form to an variable of type form (e.g. progr_form):  Set progr_form = Forms("Progress_form").
    This form has the control txtProgress to display the progress bar, a (hidden) control with the maximum number of steps, and a (hidden) control with the current number of executed steps. After the update of this latter control (e.g. progr_form!CurrentCount
    = x), the width of the progress bars is recalculated. After finishing the loop, the form is closed.
    The advantage of a dedicated progress bar form is that you can use the same form for quite different progress displays, under quite different circumstances.
    Imb.

  • How to slow things down to see the progress bar?

    how to slow things down to let the progress bar to show its progress?
    everytime i run the program i can see only two scenario: 1. 0% 2. 100%
    i think the stuffs are too little to make any difference.
    what should i add in the codes so that i can see the progress?
    thanks!
    here is my codes:
    jProgressBar1.setValue(1);
    do some stuff here
    jProgressBar1.setValue(15);
    do some stuff
    jProgressBar1.setValue(31);
    do some stuff
    jProgressBar1.setValue(41);
    do some stuff
    jProgressBar1.setValue(61);
    do some stuff
    jProgressBar1.setValue(100);

    Hi!
    When you call update on the progress bar, the value of the progress bar is updated, but it won't be reflected on the screen until Swing has a chance to repaint. Swing can't repaint until your code is finished. So, what's happening is something like this:
    setValue(1), do stuff, setValue(15), do stuff, setValue(31), do stuff, Swing Repaint
    Also, not only does this block the progress bar from updating, but as long as your code here is running it blocks all of Swing (repainting, handling events, etc...).
    If your "stuff" isn't very time consuming, just remove the progress bar altogether. Otherwise, to make things work properly, you'll want to move it to another thread. Then, from that thread you can keep the progress bar up to date with:
    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            jProgressBar1.setValue(xxx);
    });Hope that helps!
    Shannon Hickey (Swing Team)

  • Progress bar conditional issue

    hi,
    I'm using the following code to two things. First, progress bar and second, database connection. Both process are working fine but, not simultaneously.
    Code:
    ================
    On Error GoTo Err_cmdDisconnect_Click
        Dim dbs As DAO.Database
        Dim tdf As DAO.TableDef
        Dim strMessage As String, strDatabaseName As String
        Dim retval
        Dim FullLength As Integer
        Dim PercentComplete As Integer
        Dim Timing As String
    Set dbs = CurrentDb()
    strDatabaseName = CurrentProject.Path & "\BE\" & Dbase
    If IsNull(Dbase) Then
        MsgBox ("Please select the database."), , "Error"
        Me.Dbase.SetFocus
    Exit Sub
    End If
        strMessage = "Are you sure to connect " & _
        strDatabaseName & " as the Auto Evolution database?"
    If MsgBox(strMessage, vbYesNo + vbQuestion, "Connection Confirmation") = vbNo Then
    Exit Sub
    End If
    If Dir(strDatabaseName) = "" Then
        MsgBox "The Auto Evolution database you have specified as the " & _
        "source was not found.", vbInformation, "Connection Error"
    Exit Sub
    End If
    DoCmd.Hourglass True
    'Declare timing
    Timing = 0.01
    'Declare the maximum length of the progress bar
    FullLength = 8050
    'Hourglass
    Screen.MousePointer = 11
        'Remove transparancy of progress bar
    If Me.txtProgress.Width <> 0 Then
        Me.txtProgress.BackStyle = 1
    End If
    Do While Me.txtProgress.Width <> FullLength
        Me.txtProgress.Width = Me.txtProgress.Width + 25
        PercentComplete = (Me.txtProgress.Width / FullLength) * 100
        Me.txtStatus.Caption = PercentComplete & " % Complete"
        Call Pause(Timing)
    Loop
    If Me.txtProgress.Width = FullLength Then
        Me.CmdClose.Enabled = True
    End If
        retval = SysCmd(acSysCmdSetStatus, "Connecting to previous Database")
    For Each tdf In dbs.TableDefs
        If tdf.Connect <> "" Then
        tdf.Connect = ";DATABASE=" & strDatabaseName & (";PWD=zujan")
        tdf.RefreshLink
    End If
        Next tdf
    Screen.MousePointer = 0
    DoCmd.Hourglass False
    retval = SysCmd(acSysCmdClearStatus)
    MsgBox "Auto Evolution database is now connected with " & _
            "'" & Me.Dbase & "'", vbInformation, "Connection Successful"
    DoCmd.Close acForm, Me.NAME
    Exit_cmdConnect_Click:
        Exit Sub
    Err_cmdConnect_Click:
        DoCmd.Hourglass False
        If Err.Number <> 2467 Then
        MsgBox ("Unable to execute database switch now."), vbCritical, "Error"
        Me.CmdClose.Enabled = True
        Resume Exit_cmdConnect_Click
    End If
    ===============
    Any help will be appreciable.
    Thanks & Regards, Anuj Mehrotra

    Do While Me.txtProgress.Width <> FullLength
        Me.txtProgress.Width = Me.txtProgress.Width + 25
        PercentComplete = (Me.txtProgress.Width / FullLength) * 100
        Me.txtStatus.Caption = PercentComplete & " % Complete"
        Call Pause(Timing)
    Loop
    If Me.txtProgress.Width = FullLength Then
        Me.CmdClose.Enabled = True
    End If
        retval = SysCmd(acSysCmdSetStatus, "Connecting to previous Database")
    For Each tdf In dbs.TableDefs
        If tdf.Connect <> "" Then
        tdf.Connect = ";DATABASE=" & strDatabaseName & (";PWD=zujan")
        tdf.RefreshLink
    End If
        Next tdf
    Screen.MousePointer = 0
    Hi Anuj,
    What I see in your code is that you first have your progress bar run from 0 to 100%, and after that step through the TableDefs to connect.
    I assume you want to increase the progress bar during the connecting process. So you have to merge the two loops. First you count the total number of TableDefs (your 100%), and then increment Me.txtProgress.Width for each tdf in equal steps.
    Instead of building the progress bar on "each" form, you could also make a dedicated progress bar form. At the start of a loop you open the form, and assign the form to an variable of type form (e.g. progr_form):  Set progr_form = Forms("Progress_form").
    This form has the control txtProgress to display the progress bar, a (hidden) control with the maximum number of steps, and a (hidden) control with the current number of executed steps. After the update of this latter control (e.g. progr_form!CurrentCount
    = x), the width of the progress bars is recalculated. After finishing the loop, the form is closed.
    The advantage of a dedicated progress bar form is that you can use the same form for quite different progress displays, under quite different circumstances.
    Imb.

  • Updating progress bar sent from sub vi

    Hi,
    I have been trying to update a progress bar, but have had no luck.  The progress bar is active when a sub vi is called.  It works fine in the sub vi, but I can't seem to create any kind of reference, output, or anything to get it to update in real time on the main vi.  Here is how the program is structured.  The main program calls a sub vi which reads user inputs.  These user inputs are them sent to an system exec.vi call.  While the system exec is runing, a while loop is executing, which is checking the size of the file that is being created.  The progress bar works fine in the sub vi, but when I wire it up to the main vi, it only shows the final completed status.  I tried creating a global variable, which updates in real time, but it still would not update on the main vi.  I am going crazy trying to figure this out, having spent 8 hours so far on it.  Please help.

    Yes, I appreciate that but I was hoping for something more elegant than the attached.
    Cheers
    Duncan
    Dennis Knutson wrote:
    You do not create an indicator on the reference wire. The reference is not the value. You would simply create an indicator on the wire that is going to the value property.
    Attachments:
    Control Reference.llb ‏30 KB
    Control Reference1.llb ‏30 KB

  • Problem installating Snow Leopard on old Macbook Pro with Intel Core 2 Duo. After creating partition on internal hard disk (Extended Journaled), installation starts but stops at half of the progress bar. Screen asking Restart appears.

    Hello:
    I have tried installing Snow Leopard via the installation disc on a Macbook Pro (2007) with an Intel Core 2 Duo, but I the installation has failed more than 5 times.
    I have first formatted and partitioned the internal hard disk with Mac Os Extended Journal format.
    Once the installation starts, it starts without a problem unti lthe progress bar gest until half completed then a screen asking for a Computer Restart shows up.
    It asks to press the power button for some time until it the computer shuts down and then, press again to turn it on.
    Once turned on, the installation disc gets readed, the installation screen appears again and asks again to start the whole installation process form the beginning.

    Then you have a Hardware Problem.
    Your system is Crashing part way through the install and Re-Booting because of the crash.
    Could be the drive itself or it could be some other hardware part in your system. Like the RAM.
    To check if it is the internal drive connect an External drive to the system by USB and do the install on that external. If the install completes then it more then likely the drive is bad. If it crashes again then it is more then likely some other piece of hardware in your system.

Maybe you are looking for

  • Binding a Group ?

    Hi All, what I'm trying to do is a simple Group binding. I.e. I start my application with nothing and then add a group to the Scene. Later, I'll want to destroy/remove this Group and add another Group. If you imagine from a very simplistic point of v

  • Nokia n8 loses selected theme after been turned of...

    hi, Ive got a Nokia n8 pr1.2 and if i choose a theme which is not the default one it will revert back to the standard one everytime i turn the phone off. All of the themes (except the default one) has a tea cup icon next to it. How can i fix this or

  • N97 - unable to perform bluetooth operation

    Hi, for some reason my bluetooth stopped working. As you see I got this message when trying to turn it on: unable to perform bluetooth operation. I've tried to hard reset the phone, restore factory defaults, I've even flashed it with new firmware eve

  • Synchronizing calendar

    how can I synchronize my iphone calendar with my Windows Live Mail or my Google Calendar?  I would like to be able to view entries from my iphone on my calendar as well as entries from my computer calendar on my iphone.

  • Sync Windows-Calendar with BB 9900 on Win 7

    Hello forum, as the topic says I'm searching for a way to sync my BB 9900 via BB Desktop Manager with the Windows-Calendar (known from Windows Vista) on Windows 7. The article http://www.blackberry.com/btsc/KB12268 says that the BB Desktop Manager 6.