Knowing when a page has finished loading

Hi all,
I've  produced  a small project that has  a  few tabs, each tab contains an IFrame UI, which loads a BW report.
I've been asked to  add an indicator that should tell when the reports are finished loading.
I have two problems:
1. How  do I know when the frame has finished loading the url? I know I can use the OnLoad tag in html, but how can I edit the HTML WebDynpro produce?
2. What kind of indicator can I use? I thought of two options - Putting the "Progress Clock" which WebDynpro uses when calling an RFC, and for that I need to know if it's even possible  to call that clock.
The 2nd option I thought  of is using the ProgressIndicator UI, and just divide the 100% to the number of tabs, and change the percent value when each tab  has  finished loading the URL.
I appreciate any help  that  you  could provide.
Yaniv

Armin Reichert -> I've tried what you suggested about the portal integration (I send parameter to an URL Iview, which changes the url), and it works great!
Thanks.
Noufal Kareem -> Because I use an IFrame UI which loads a BW report, I don't have an indication (The WD don't know / care if the page inside the frame was loaded.)

Similar Messages

  • How can I tell when a JEditorPane has finished loading the document?

    Hi!,
    I've got a JEditorPane connected to a viewport and a couple of scrollbars, and I realy need to know when the JEditorPane has completed loading the document, so that I can decide whether to turn on or off the scrollbars.
    When I try to check the viewport.getView().getWIdth() right after calling setText() or setPage() the values come out wrong... is there an eventHandler that I can register ?
    thanks in advance
    -Miguel

    OK, I'm not an expert. But, why set the scrollbars manually? Would it not be easier to put the JEditPane in a JScrollPane with the scroll policy set to "as needed"?
    Ken

  • AS2 - coding one mc to another. How do we know when the first has finished

    _root.object_1.sunny.gotoAndPlay("walk");
    _root.object_1.sunny.gotoAndPlay("laugh");
    Hi, I code the following. But it jumps straight to the seconf mc "laugh". Is there nbo way of playing walk and on finishing playing laugh.
    Cheers

    Hi guys.
    THANKS for the answers. They are very helpful. However, one of the problems is it is very difficult to convety exactly what we are asking for in these forums.
    I am NOT a programmer but I do know what I need. These answers were very helpful in the learning process as you guys are REAL pros. I have ended up with a mixture.
    On each frame on the Timeline I write the instructions ie: Frame 1:_root.sunny.gotoAndPlay("speak) then on Frame 2:_root.sunny.gotoAndPlay("laugh).
    The key is to write on the last frame of the nested mcs: _root.nextFrame(); in this way I don't need to write a specific instruction inside the nested mc ONLY on the main timeline and therefore keep the code really "clean".
    It serves as a GREAT template to create movie scenes. I have seen this information asked for on many sites but with inadequate answers given.
    I hope this serves as a great lesson for other NON pros but with serious projects.People are still using the main timeline to tween between key frames when they could be using AS. It's ridiculous but NOBODY seems to teach it well. Not even good sites like cartoon smart etc...
    Thankyou guys.

  • Need to know when text has finished loading

    The following code loades text into a textfield the problem I'm having is the routine at the bottom runs before the text loads and the scrollbar disappears even when there's enough text to overflow the textfield.  How would I make sure the text has finished loading before running the code that enables/disables the scrollbar?
    mainText.htmlText = main[1];
    textFieldLength = mainText.text.length;
        if(mainText.length > textFieldLength){
            mainScroll._visible = true;
        }else{
            mainScroll._visible = false;

    I messed up the example.  All I really need to know is how can I determin when a dynamically textfield overflows.

  • ColdFusion with IIS URL Rewrite - Page never finishes loading

    I am running CF10 on IIS 7.5 with URL Rewrite module installed.
    All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value in Application.cfc like this:
    <cfcomponent>
    <cffunction name="onRequestEnd">
    <cfheader name="Content-Length" value="#getPageContext().getCFOutput().getBuffer().size()#" />
    </cffunction>
    </cfcomponent>
    Without this code the browser does not display the page. However, even though it is now displaying the page, it is not doing it correctly. The page never finishes loading fully and not all of the HTML content seems to be on the page.
    I have tried to add a <cfflush> tag after setting the 'content-length' but it makes no difference. I don't understand why this is happening but I know that it has happened to someone else who was using htaccess: http://forums.devshed.com/coldfusion-development-84/page-not-finishing-loading-coldfusion- and-htaccess-bug-575906.html
    Can anyone please help?

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • How do you identify when a report has finished?

    Hi all,
    I've got a big report that is taking a while to run (approx 1min) and the problem I'm having is that my users are getting bored of waiting and starting to click around my web application and re-running the report because they think it has failed. The re-running of the report is causing more load on the system and the reports to run even slower. What I would like to do is stop them re-runnning the report maybe by somehow locking the web page until BI publisher has finished but I don't know how to get a message back from BI publisher.
    Currently I'm running the BI publisher report by having a button push which redirects the users web browser to a url such as:
    'http://'||:BI_PATH||'/xmlpserver'||:BI_DIRECTORY||'/Custom Reports/'||:p180_report||'/'||:p180_report||'.xdo?_xpf=&_xpt=1&_xdo='||:BI_DIRECTORY||'%2FCustom%20Reports%2F'||:p180_report||'%2F'||:p180_report||'.xdo&_xt='||:p90_template||'&_xf=rtf&_xmode=4'
    And then as I'm returning an rtf doc the familiar save, open or cancel popup comes up. The problem is that before the popup appears they can re-click the run report button.
    One way round it I've thought of is to have the report generate to a file system and redirect the user to a waiting page that checks periodically for the files existance and then when it does exist forward the user to a page with a view report button. This sounds like a lot of effort, does anybody know of a better way?
    I've also wondered if running the report using webservices would be an option, is there a way of getting BI publisher to run a web service when a report has finished? This could then interact with my back end server and the web page could act on that, or am I totally barking up the wrong tree?
    Any help would be greatly appreciated!
    Thanks,
    Darren.

    Hi Darren
    couple of ideas
    1. Rather than 'run' the report, get it to run through the scheduler immediately. Once its running through the scheduler you could then poll the scheduler tables to see when it completes. You could either redirect the users to a wait page or show an egg timer until the document has been created. this would require the document to be delivered to somewhere for you to poll as the URL will not return a job id.
    2. Bit more involved but probably better is to hook into BIPs web services. So rather than the button issue an http request it calls a servlet to issue a web service call to BIP to schedule a report. The WS will return the job id to the caller, you can then poll the scheduler via a ws to check the progress of the job. Once complete you can then retrieve the result form the scheduler tables via another call.
    Food for thought I hope
    Tim

  • How to find out that sequence has finished loading?

    Hello,
    i have a custom C#-OPUI to load and execute testplans.
    I do this using these funtions:
    1. ApplicationManager.OpenSequencFile(filename)
    2. ???
    3.Command TestStart = axSequenceFileViewMgr.GetCommand(.......)
    TestStart.Execute(true)
    The question is now: How do i know that the OpenSequenceFile has finished doing everything?
    I need to know that is finished before i run the execute-command.
    Is there a specail final-event that i can check?
    Thanks for help
    Solved!
    Go to Solution.

    Hi jigg,
    Thanks for the info.
    In my sequence file, besides the main sequence, I also enabled "SequenceFileLoad" callback. In "SequenceFileLoad" sequence, I added some instruments initialization tests. The goal is to initialize the instruments only once when the sequence file is loaded. Therefore I need to know when the "SequenceFileLoad" is finished or when the sequence file has finished loading.
    My first idea is to use the event "axApplicationMgr_SequenceFileOpened", but I found that I will catch this event before the "SequenceFileLoad" execution finished.
    And then, I also found that together with the execution of sequence "SequenceFileLoad", there are 2 events in my C# code: "axApplicationMgr_StartExecution" and "axApplicationMgr_EndExecution" triggered. So I was thinking may be I can use "axApplicationMgr_EndExecution" to determine if the sequence file has finished loading. But the problem is every sequence execution will trigger these 2 events. The main sequence will also trigger these 2 events. So I needs to know the name/ID of the current executing sequence.
    So Is there a way to read current executing sequence name?
    Thanks and regards,
    0049

  • How to kow when a page is complety loaded?

    Hi all.
    I have a JEditorPane in which I'm rendering a html page. But I want to know when the page finish to load in the JEditorPane. Is there a method, or trick to know this?
    Thanks.

    There are a couple ways.
    (1) If you are loading the page synchronously:
    (a la AbstractDocument.getAsynchronousLoadPriority() < 0), then it is done loading when setPage(URL) returns.
    (2) If you are loading the page asynchronously:
    Get the editor kit and wrap the kit using the Decorator Design pattern. Then set the editor kit to be the decorated one.
    Make the decorated kit fire an event whenever the read() method completes. Then listen for that event, since that is when the page is loaded.

  • How to detect that ADF page has completely loaded with OpenScript

    In Selenium tests I use AdfPage.isSynchronizedWithServer to detect whether an ADF page has completely loaded. I attempted to do the same with OpenScript by doing something like:
    boolean loading = true;
    while (loading) {
    String[] result = web.document("/web:window[@title='*']/web:document[@index='0']").executeJsFunction("AdfPage.PAGE.isSynchronizedWithServer()", null);
    if (null != result && result.length > 0 && "true".equalsIgnoreCase(result[0])) {
    loading = false;
    } else {
    think(5.0);
    unfortunately this fails with
    ERROR [1] Error in section Run at line unknown. An unexpected exception occurred in the script. Script section: Run. Caused by: Exception occured.
    java.lang.Exception:
        at oracle.oats.scripting.modules.webdom.api.elements.DOMDocument.executeJsFunction(DOMDocument.java:1043)
    Anyone know how to call ADF JS from OpenScript or alternatively what is the recommended way to make sure that the ADF page has loaded completely ?

    Hi,
    when user logged in set a attribute in the session using
    sess.setAttribute("var","value");
    Now in ur JSP get this attribute if its null then ur session has expired an send the user to login page.
    sess = requset.getSession(false);
    String/Object  value = sess.getAttribute("var");
    if(value==null)
    //send it to Login page
    }

  • I need to set up a DSN for my Thunderbird 24.3.0 or at least know when the email has been received by a client.

    My employer wants to be able to know when a client has received an email sent by us. I have researched DSN extensions and add-ons for Thunderbird but the only one I could find was not compatible with version 17. I updated to version 24 and still I can not find a solution. All we want is to be able to know when the client has received our emails.

    Hey,
    There are a number of them [https://addons.mozilla.org/en-US/thunderbird/search/?q=dsn%20extensions DSN extention search results]
    If you have any questions about the support for those add ons please see their support page that is listed on the add on profile page.

  • Knowing with another process has finished writing to file

    Hi,
    We have the following situation:
    - Some (non-java) process is uploading files to some directory.
    files are huge (several Giga), and size is not known in advance.
    - We need java to monitor this directory, and tell when a file has finished uploading (so the entire file is ready on disk).
    Is there a way to do it ?
    Some things I've tried , that didn't work:
    - Checking File.canWrite() (hoped that if another process is writing to file, java would get canWrite=false). No luck.
    - Opening a FileInputStream (or nio's FileChannel) and waiting for EOF. No luck either (if the other process has written, say, 1/2 the file, then java would read half the file and then report EOF, even though the other process hasn't finished writing).
    Any ideas would be appreciated (even if anyone knows of a platform-dependent solution, e.g one that only works on Windows or Unix, it would still help).
    Thanks very much.

    Well, going to platform specific solutions, there's probably some way on *NIX to see if a file is open or not, you could go through Runtime.exec() to check for that.
    Of course that's not a very elegant solution, but Java has very limited tools for this sort of thing.
    Let's wait for a better solution...

  • How to know when a session has gone by closing browser or leaving site.

    Hi! I'm doing an application that uses the session API. This application must run in every java-enabled web-server. I want to know if there is a way to know when a session has gone. I mean, you can know this if, for example, you call the isNew method. But for example, if you close the browser, the session is gone, but obviously, I can't call the isNew method from anywhere, so... how can I know when the session is killed by closing de browser or if the user leaves the site. You can use the onUnload of JavaScript, but I don't want to call a new window when this happens.
    Hope you can help me!

    You probably can't tell. But then you don't want to do that logic anyway... I was just at your site, and I was signed on, then somebody came in and asked me something so I had to look at another site, then I pressed the back button and now I'm at your site again, but you signed me out? What's with that?

  • Project Managers to know when a task has been updated for the last time

    Hi,
    I would like know if there is any timestamp feature in Project Server 2007, so that it can be possible for Project Managers to know when a task has been updated for the last time.
    Thanks in advance

    Hi,
    If you are using the My Tasks to drive the task updates then you can use the 'Applied Requests and Errors' available under 'Go To' in the Task Updates area. Here the PM can find when requests have been approved and how many updates he/she received for a
    particular task (by clicking the task name) etc.
    Hope this helps
    Paul

  • [svn:osmf:] 14754: Fix bug FM-555: RTE when SerialElement child has a load error.

    Revision: 14754
    Revision: 14754
    Author:   [email protected]
    Date:     2010-03-15 09:25:26 -0700 (Mon, 15 Mar 2010)
    Log Message:
    Fix bug FM-555: RTE when SerialElement child has a load error.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-555
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/compositeClasses/TraitLoader.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/compositeClasses/TestTraitLoader.as

    (Removed)

  • Since upgrade to firefox 10 pages naver finish loading , this only happens in firefox

    I jus upgraded to firefox 10 and since then some pages never finish loading , the websites are random sometimes the load fine sometimes they dont

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *http://kb.mozillazine.org/Error_loading_websites
    *https://support.mozilla.org/kb/Error+loading+web+sites
    *https://support.mozilla.org/kb/web-pages-dont-load

Maybe you are looking for

  • Applications in List View

    I just got a new 8700 (my old one broke).  When I was updating the software to the new versions 4.2.1.107 I lost the list view of the applications when I pushed the Front Convenience Key.  I now get the applications but they show up as icons on the s

  • An error has occurred while erasing your restore destination disk

    MacBook Pro, mid-2010 15-inch; OS X Mavericks (10.9.4); originally shipped with Snow Leopard. My MBP has crashed & won't start beyond the grey screen and spinning wheel. System restore from Time Machine backup won't work. I tried all these without su

  • I cant open my itunes because "another user as it open"

    Hellow, I have itunes for two years now and recently when I am trying to open my itune it just open a window saying "you cannot open the application itubes because another user as it open" but I dont have another user on my windows 7 computer so I do

  • My iPhone 4S is slow with ios7

    New iPhone 4S. Just upgraded to ios7. Very slow. Nothing wrong w  phone. How do I go back to ios6?

  • InterMedia indexing and searching of zipped files

    Hello, I have interMedia successfully configured to index and query a repository of files (MS Word, Excel, PPT, PDFs, txt files)which are located on a file system. My issue is with zip files. I cannot successfully index and search zip files. I've tri