PROGRESS BAR WHILE LOADING A PAGE

All,
iam using below code and its working good with page submit button but i need it for a page load i.e when a page loads show the progress bar(page which take a while to load) so i can call it like onload. Anybody who has done this pls i appreciate if you could help...
function html_Submit_Progress(pThis){ 
$x_Show('AjaxLoading');
window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 900);
doSubmit('APPLY_CHANGES');
function submit_HideAll(pThis){ 
$x_Hide('wwvFlowForm');
doSubmit('APPLY_CHANGES');
function submit_ButtonRegion(pThis){ 
$x_Hide('button_region');
doSubmit('APPLY_CHANGES');
using apex 4.1 and my page here i need it is a popup.
thanks

You can fix that in your page template by putting something like this just before the BODY tag in the Header region:
<div id="loading"
  style="display: block;
         position: fixed;
         top: 0px;
         left: 0;
         z-index: 1999;
         width: 100%;
         height: 100%;
         background-color: #fff;
         text-align: center;">
<div style="position: relative;
            top: 130px;">
Wait..loading..
</div>
<img src="#IMAGE_PREFIX#themes/theme_200/images/loading.gif" height="32" width="32"
   style="position: relative;
          top: 150px;"/>
</div>and putting something like this just after the closing BODY tag in the Footer region:
<script>
$(document).ready(function(){
  $('#loading').hide();
</script>

Similar Messages

  • Show Progress Bar while only on Page Load.

    Hi Experts,
    I want to show progress bar every time when page loads.
    Progress bar is coming on the page. but it is not going off after page is loaded.
    Below is the code which i added for the Progress bar.
    //written on Header Text of Page
    <script type="text/javascript">
    <!--
    function html_Submit_Progress(pThis){
    $x_Show('AjaxLoading');
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    //-->
    </script>
    //written on footer text of Page
    <style> #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:20%;top:20%;position:absolute;border:0px solid #666;}
    </style>
    <div id="AjaxLoading" style="display:none;"><br /><img src="#APP_IMAGES#progress_bar.gif" id="wait" /></div>
    //called the function Execute on Page Loads 
    html_Submit_Progress(this);Progress bar is continuously showing on the page after page is loaded.
    I want only to show only page loads.
    Please help me .
    Apex Version : Apex 4.1
    DB Version : 10g
    Regards,
    Jitendra

    Hide the loader element when the page has loaded. Put this in the javascript section
    $(document).ready(function(){ $x_Hide('AjaxLoading'); });Or put it in the page load section
    $x_Hide('AjaxLoading');Or create a dynamic action which fires on page load, select a hide action, and use a jQuery selector to target '#AjaxLoading' as an affected element.

  • PROGRESS BAR while loading report

    Hi Fiends,
    I have a classic report w/ a link and this link open a other page and this page is a report with a report model ( CSV ).. and this load is too slow and i wanna include a progress bar like this site [link]http://apex.oracle.com/pls/otn/f?p=987654321:26[link] and this progress bar will be show while the report is loading ...
    Anybody knows how to do this ?
    Tks
    Zander

    Hi,
    Have you seen :
    [url http://apex.oracle.com/pls/otn/f?p=65560:2:0::NO] Loading Icon plugin
    [url http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/loading-icon_81.html]Click here to see the features and download
    And I think that it is good to check [url http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_plsql_job.htm#AEAPI1203]APEX_PLSQL_JOB
    Regards,
    Fateh
    Edited by: Fateh on Sep 22, 2012 1:26 AM

  • I am on dial up. Can I get the progress bar for loading a page back it helps me know how things are going.

    On previous versions of Firefox there was a progress bar when you were loading a page. It was in the lower right corner. How can I get it back? It would be very helpful if there was an add on for it for those of us still on dial up.

    Be aware that the loading indication that you see doesn't represent a real indication of what is happening. It just starts increasing till about 50% of the bar is filled and if it takes too long then the steps get smaller (half what is left as available space in the end or stop at all).
    There is also the Net tab on the Web Console that can show how long it takes to load content.
    *Firefox > Web Developer > Web Console

  • Progress bar while loading table

    Hi, please could anyone help me to how to create progress bar when i am loading large number of data using bean. data would be unknown so how do i show the status...plz help..
    thanks

    This should help
    http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html

  • Progress bar onLoad of jsp page.

    Hello all,
    I was wondering how to put a progress bar on load of jsp page.
    Also I have html page that calls a servlet. It takes some time to run it.
    So, is there a way to put a progress indicator while serlvet is doing work?
    thanks

    You can fix that in your page template by putting something like this just before the BODY tag in the Header region:
    <div id="loading"
      style="display: block;
             position: fixed;
             top: 0px;
             left: 0;
             z-index: 1999;
             width: 100%;
             height: 100%;
             background-color: #fff;
             text-align: center;">
    <div style="position: relative;
                top: 130px;">
    Wait..loading..
    </div>
    <img src="#IMAGE_PREFIX#themes/theme_200/images/loading.gif" height="32" width="32"
       style="position: relative;
              top: 150px;"/>
    </div>and putting something like this just after the closing BODY tag in the Footer region:
    <script>
    $(document).ready(function(){
      $('#loading').hide();
    </script>

  • Displaying an Indeterminate Progress Bar While a DB2 Stored Proceedure Runs

    How do I display a dialog with an indeterminate progress bar while a DB2 query runs? Could anyone point me to an example or some strong docs?
    I learned Java about six months ago, so I'm relatively new to the language. Through searching and documentation, I've been able to find all the examples and answers I've needed so far. Now I've run into an issue I can't find anywhere. It seems like the most basic thing in the world. I have a DB2 stored procedure that takes about 5 minutes to run. While it's running, I want to display a simple dialog with a progress bar going back and forth (no buttons, no user interaction).
    I'm using Eclipse 3.3.1.1 as my IDE, and running the application from a JAR file. I have Java 1.6.0.30 installed. The DB2 query is running in response to a user clicking a button on the form (an ActionEvent). All of my forms are using Swing (JFrame, JDialog, etc.).
    The crux of my problem seems to be that I can bring up a dialog (which should contain the progress bar), but I can't get it to paint. All I get is a window that's the right size/location, but contains an after-image of what was behind it. I can't even get a dialog to display with a "Please Wait" label while the DB2 procedure runs.
    I tried separating both the DB2 stored procedure and the progress dialog into separate threads. I tried yielding in the DB2 thread to give the progress dialog a chance to update. I tried using invokeAndWait, but I got the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
    It seems like I'm doing something wrong in my use of Theads, but I can't for the life of me figure out what it is. If anyone could help out a bit of a Java newbie, I would be extremely grateful.

    Demo:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ProgressBarExample2 {
        private JProgressBar bar = new JProgressBar(0,99);
        private JButton button = new JButton("Lengthy operation");
        private ActionListener al = new ActionListener(){
           public void actionPerformed(ActionEvent evt) {
                button.setEnabled(false);
                bar.setIndeterminate(true);
                new Worker().execute();
        private class Worker extends SwingWorker<Boolean, Boolean>{
            protected Boolean doInBackground() {
                try {
                    Thread.sleep(10000); //10 secs
                } catch (InterruptedException e) {
                return Boolean.TRUE;
            protected void done() {
                button.setEnabled(true);
                bar.setIndeterminate(false);
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new ProgressBarExample2();
        ProgressBarExample2() {
            button.addActionListener(al);
            JPanel cp = new JPanel();
            cp.add(button);
            cp.add(bar);
            JFrame f = new JFrame("ProgressBarExample2");
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • My computer will not start up. It powers up I get the gray screen with the apple and get the loading progress bar it loads to 25% and the screen goes black

    My computer will not start up. It powers up, I get the gray screen with the apple, then the loading progress bar starts loading to about 25% the the screen goes black. what can I try to get my computer up and running?

    Carolyn Samit wrote:
    iMac, Mac OS X (10.7.1)
    Use Command + R for Lion Recovery
    Try restarting, when you hear the startup tone hold down the Option key. Then choose the Recovery Partition.

  • How to make a progress bar or a waitting page?

    page1.cfm
    <form action="InputDB.cfm" method="post">
    <input id="inputdb" type="submit" value="InputNow">
    </form>
    InputDB.cfm
    <cfloop from="1" to "9000000" index="x">
    if it inputs the 9000000 records into the database,
    it will spend a lot of time,how to do make a progress bar
    or a waitting page when Users wait for the time?
    </cfloop>
    Thanks a lot.

    Waiting pages are easy.
    Step 1, convert form variables to session variable.
    Step 2, display something.
    Step 3, use js window.location to call the action page. Don't
    use cflocation. Even though it works, you lose your display.

  • Progress bar before loading a component

    hi,
    Can anybody send me the coding to show a progress bar before loading a component.
    thanks in advance.

    Hi,
    Here is one idea;
    http://www.cflex.net/showFileDetails.cfm?ObjectID=448
    Johnny
    Please rate answers.

  • Unauthorized message while loading home page

    Hi, I am a beginner in Oracle.
    I had installed Oracle 10g express edition a month ago. I've been working with database and tables successfully and developing some applications using appex 2.1.
    One of the last operations i did was to run successfully this pl/sql instructions in sql command in graphical user interface:
    declare
    pw_v varchar2(100);
    begin
    pw_v := dbms_obfuscation_toolkit.md5( input_string => 'admin' );
    INSERT INTO M_USERS(LAST_NAME,USERNAME,PASSWORD,ADMINISTRATOR,IN_USE)
    values('admin','admin', pw_v ,'Y','Y');
    end;
    After that i've tried to view the table M_USERS when suddenly it prompts username and password in "Connect to 127.0.0.1" window (This window never prompted before). I tried my operating system and database passwords but it still gives "Unauthorized" message.
    I shut down Database server, restarted my Operating system and when i load the home page it still prompts username and password in "Connect to 127.0.0.1" window.
    I've read something like that in Re: Unauthorised message while loading home page and solution was to change the port number.
    I've changed port number typing this command in sql plus line: "exec dbms_xdb.sethttpport(8090)" but the problem still remains.
    I think to reinstall Oracle 10g express as last chance but i dont think it would be a professional solution.
    Please help me with this it's urgent.
    Thanks.....!!
    Roger

    Hi Ginny, i am new in Oracle Express....I have the same problem you had. I've changed port number and the problem still remains... i need the solution urgently...please help....

  • Progress bar when loading page (%)

    Hello. I have done an extensive search on this forum but I haven't been able to find exactly how to do this. I want to put one of those progress bars that show the percentage of how the load of the present page is coming along, and how far away from completion it is. For example you click on a page on a site and the page in question takes 45 seconds to 1 minute to load. In that time while the load is taking place the end user sees a progress bar that tells him(her) that the load is 15% along, 10 seconds later it's 25% complete, etc.
    There are a couple of pages on a site I built with iWeb that have either a blank or black screen where nothing at all happens until the page is completely loaded. Depending on the browser and the computer this could take between 15 seconds to a couple of minutes. If I have this progress bar then the user can see how far away the load is and decide if they want to wait or not.
    I am aware most every browser has this functionality built in. However I am watching out for many of the end users who are not aware of this or where in their browser to look and see how the page load is coming along. I am guessing it's some sort of Java script or HTML Snippet or something like that.
    Thank you for your help.

    The average surfer will wait 7 seconds for your page to download. Its up to you to make this happen.
    Make sure you keep your pages fairly simple and don't overload them with content.
    Optimize your photos, compress your movies and load your audio files as MP3 - preferably using a flash player.
    Upload to a server other than MobileMe and optimize your files before upload ...
    http://www.tonbrand.nl/
    Doing all this will also give your website a chance to load in Internet Explorer.

  • Show progress bar while module loads

    I have a TabView where each tab is a module. One of the
    modules has a lot of child components and when I click to activate
    that tab - it takes 2-3 seconds to load. During this time OSX shows
    the beach ball.
    Is it possible for me to show a loading progress bar instead?
    Should I be pre-loading all the modules when the application loads,
    or at some other point? If so, how do I do this?
    Any suggestions would be appreciated.

    Hey Jason,
    I'm not sure who moderates, but I can send you in the right
    direction.
    Short answer: Look around for Asynchronous Flex demos
    Long answer:
    The interfaces locks up (beach ball/hour glass) because the
    main application 'thread' is busy with the task you asked of it.
    This can, in many different languages, cause a freeze. Javascript,
    Native Mac or Windows applications, apparently Flex too.
    Running one task at a time is considered a synchronous
    (serial) request. What you need to do is make an asynchronous
    (parallel) request. In the web world, that's the 'A' in Ajax. By
    making asynchronous requests, you free up the main 'thread', while
    a separate worker thread is off completing the task. This keeps
    your interface responsive.
    I think that leads to event listeners.. Send off a background
    request, but listen for it to complete. Link the listener to a
    second piece of code upon successful completion.
    I wish I could get into more detail, but I'm not a Flex guy..
    hoped that at least helped gel the idea.
    -dp

  • Progress bar while PDF loading on browser

    Hi,
    I have a servlet which is getting the data and rendering a PDF form and display the form into user's browser. I want to show a progress bar or a waiting image/message on the browser when a rendered PDF is loading. I found out that there is no delay in any step of the code itself but the PDF is taking time to load in a browser and this delay is increased when I apply reader extensions on rendered PDF. Is there any way to show a progress because the delay is too much.
    Regards,
    Sunaif Aziz

    I resolved this when page loads but i still have issue with a progress bar on another page displaying "before" onload...thanks.

  • Displaying progress bar while components load

    I'm going to display a JTree that's quite huge (takes time to load; I need to get the info as XML from a server, etc.)
    So, I want to display a JProgressBar while it is loading.
    My plan was to use a cardlayout, and show the panel with the progress bar until the tree was loaded and then do a .show("tree") on the main panel with the card layout.
    However, this does not seem to work. Nothing is displayed before the tree is loaded ...
    Any suggestions on best ways to do this?
    Here's my class so far:
    public class HierarchyJTree extends JPanel {
        private static Logger logger = Logger.getLogger(HierarchyJTree.class);
        private JProgressBar progress;          // keep track on progress
        private TreeMap idmap = new TreeMap(); // to map nodes created up against their id's; needed to create the tree structure when we have a parent id and want the node
        private dataAccess access = dataAccess.getInstance();
        private JTree tree;
        private CardLayout card = new CardLayout();
        private int maxProgress = 20;
         * Construct a new JTree. Collect the category information from the database.
        public HierarchyJTree() {
            this.setLayout(card);
            JPanel progressPanel = new JPanel();
            progress = new JProgressBar(0,maxProgress);
            progressPanel.add(progress);
            this.add(progressPanel, "progress");
            card.show(this,"progress");
        public void startCollectingData() {
            progress.setValue(2);
            ResultSet rs = access.sendXML("<request>\n<runQuery>getCategories</runQuery>\n</request>");
            progress.setValue(10);
            tree = new JTree(new DefaultMutableTreeNode("Categories", true));
            tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
            JPanel treePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
            treePanel.add(tree);
            this.add(treePanel, "tree");
            addFromResultSetToTree(rs);
            card.show(this, "tree");
         * Constructor that will use incomming ResultSet to create the tree, instead of contacting
         * the server to get a new one
         * @param resultset containing the category info from MOD_category
        public HierarchyJTree(ResultSet resultset) {
            this.setLayout(card);
            tree = new JTree(new DefaultMutableTreeNode("Categories", true));
            BasicConfigurator.configure();
            tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
            addFromResultSetToTree(resultset);
         * This will take a jaxb.ResultSet object containing ID, categoryName and parentID of all the
         * categories in the database, and add them as Nodes in the JTree this class represents.
         * @param r the jaxb.ResultSet object
        private void addFromResultSetToTree(ResultSet r) {
             // code to load the info into the tree here, and inc the progress
                progressValue += incValue;
                progress.setValue((int)Math.round(progressValue));
    }

    Use SwingWorker, which is not included in Swing library, but you can find it on http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/SwingWorker.java;
    see alse http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html.

Maybe you are looking for

  • PopUp my GUI and bring it to front

        Hello, i have a GUI and want du bring a SubVI-GUI to the front, if special RS232 get in. Is it possible, that it popup also when I'm in Word or Excel at this moment? Any ideas? Thanks, Simon Wieser

  • Main display blank after sleep under Mavericks

    I use a NEC Multisync LCD 2690 as my main display, and a small Hansol H550 as a secondary one; when waking up from sleep, the NEC is blank and everything is crammed up on the Hansol. Under Lion, I could go to the System Preferences, choose Monitors a

  • 10.4 - 10.6 migration = lose of network

    Ok i have read all manauals and post re the migration of a 10.4->10.6 server but nothing covers the slightly odd issue i've got. I installed 10.6 server on a top spec (2010) Intel X-Server then used the migration asssistant and took all the info from

  • ICWebclient: Configuration :

    hi , i have configured the ICWebclient in the CRM installation. after all the tasks when i click on the URL's to verify Server and Dispatcher i am able to check the Dispatcher link but i am not able to check the server one. it is: http://crmserver:50

  • InDesign CC 2014. Kann man den Fußnotentext in eine andere Textbox legen.

    InDesign CC 2014. Kann man den Fußnotentext in eine andere Textbox legen, ohne den Bezug zur Fußnote zu verlieren. Habe das Problem, dass ich die Fussnoten unter einen zweispaltigen Text über die ganze Seite unten laufen lassen will.