URLloader and progressbar

Hi!
I need to log the bytes which are sent by URLloader, to show
them in a progressbar, or simply to check the time it will take.
I know that is possible to get the bytes received by
URLloader, but I don't mind it; I need to log the sent bytes,
because I'm sending long forms by URLloader, and I don't know how
to check progress status while SENDING.
Is it possible? Could it be possible in a future? I really
need this feature.
Thanks

I have tried it, but It only prompts a message when form is
sent, so I have to wait... 2 minutes before it's shown if I send a
long form (is a file in a multipart form).
In addition, It shows the "server answer totalbytes", not the
SENT bytes.

Similar Messages

  • Drag drop and ProgressBar cancel button

    Hi,
    I have a class that extends CDragDropTargetFlavorHelper, during ProcessDragDropCommand I want to show a ProgressBar (the code that does this is actually in another, model only, plugin - might be significant), however, though the progress bar shows the cancel button doesn't.  Unless I delay the processing until after the drop is complete by scheduling the command - if I either process the command or schedule and process scheduled commands the cancel button doesn't show.
    Scheduling the command gives a bit of a delay to the user (even with highest priority) and also no ability to feedback 'drop failed'.  So I'd like to:
    - preferably get the cancel button to show without scheduling the command
    - know immediately when a drop has been completed and process scheduled commands.
    Thanks in advance
    Ian

    Thanks Ned,
    I have since been continuing to research this and it would seem that implementing the HitTest could be the way to go. If anyone has any experience or advice to support this I would be grateful.
    Regards
    Chris

  • Flex Mobile, URLLoader and Sessions

    I have created a Flex Mobile Project that I've been testing so far on a Motorola Xoom and uses the URLLoader object to query some JSP pages and return the output. These JSP pages require user authentication which depend on sessions.
    If my URLLoader requests are made sequentially (the second request is not made until the first is completed) session information functions normally. If multiple URLLoader requests are made at the same time there is a chance that one or more of the request's session information will fail. I've used a packet sniffer and found that the "Cookie: JSESSION=..." header value is not being set or sent to the server.
    I've actually been able to solve this problem by fetching my session ID when I login, storing it locally and setting the "Cookie: JSESSION=..." value manually in the header of all my URLLoader requests. Most of the time the browser will overwrite this value that I've set with the session ID that it has, and that's fine. But in the case where it doesn't set this value then my manually set value is passed to the server and it is able to find the appropriate session.
    The solution I've come up with seems to work so far, but I was still wondering if anybody knows what's causing this or knows a better solution?

    That sounds like everything's working the way it should. Until the "first" request is authenticated successfully and the response comes back to the browser/device, your app doesn't have session credentials. Sending multiple simultaneous unauthenticated requests will thus all need to authenticate individually -- and making matters worse, may create multiple sessions on the server, so as they come back your session info (as represented by your JSESSION ids) will rapidly run through all the new sessions until settling on the last one.
    I would suggest changing your application flow to let your first request go by itself first and not submit any other requests until that (authenticated) response is received.
    -- Tom
    Flex SDK engineer

  • Problem with fixing pagerdeluxe and progressbar while using jsf-ibm.jar

    hi,
    I am having a jsf data table with <hx:pagerdeluxe> to navigate, and i am using (jsf-ibm-unknown-vers.jar) jar, this works fine. I need to insert a progress bar in my jsf and used <hx:progressBar> but this was not available in the old jar, So i upgraded my jar to jsf-ibm.jar when i ran this progress bar works fine but he pager deluxe shrinks and unable to navigate.. I am using jboss server .... Can any one help me out about regarding this. So that both works fine
    Thanks.
    Rakesh M

    This is not related to Sun JSF. You might have more luck if you ask component library specific questions at the website/forum/mailinglist of the component manfacturer.

  • Stausbar and progressbar

    how to bind the message or status in
    progressbar and statusbar while running
    or calling stored procedure .
    can any one may help,
    thanks
    pullareddy janapana
    null

    Excerpt from from code book "Java Thread Programming" which you can adjust to your situation:
    public class Notify {
    private Object proceedLock;
    private boolean okToProceed;
    public Notify() {
    proceedLock = new Object();
    okToProceed = false;
    public void waitToProceed() throws InterruptedException {
    synchronized(proceedLock) {
    while(okToProceed == false) {
    proceedLock.wait();
    public void proceed() {  //call when the first thread finished its work
    synchronized(proceedLock) {
    okToProceed = true;
    proceedLock.notifyAll();
    Also note, that I wrote you better solution for first time :updating of JProgressBar (as all swing comp.) should be done in event dispatching thread. When you use SwingUtilities.invoke() and invokeLater(), thread (i.e. event dispatching thread) is placed into queue thus waiting for previous task to be finished.
    Please read about it in
    http://java.sun.com/docs/books/tutorial/uiswing/overview/threads.html
    It is very important concept about multithreading and swing gui.

  • Urlloader and html

    Hello,
    I'm using URLLoader to display some simple html in a text
    component like so:
    [Bindable]
    public var htmlImport:String;
    [Bindable]
    public var loader:URLLoader = new URLLoader();
    [Bindable]
    public var request:URLRequest = new
    URLRequest("page1.html");
    private function completeHandler(event:Event):void{
    loader = URLLoader(event.target);
    htmlImport = String(loader.data);
    mytextArea.htmlText = htmlImport;
    public function init():void {
    loader.load(request);
    loader.addEventListener(Event.COMPLETE, completeHandler);
    This works fine initially although if I want to load a
    different html file afterwards by doing e.g:
    request.url = 'page2.html';
    loader.load(request);
    It fails with #error 2025
    What am I doing wrong?

    I loaded your code into application and changed the html page
    names to pages that i had, however, I was able run the code without
    error. I'm running the 9_0_28 debug flash player, you may want to
    check to see which flash player you are running.
    my mini-app:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    x="0" y="0"
    paddingLeft="0"
    paddingTop="0"
    paddingBottom="0"
    paddingRight="0"
    backgroundColor="#FFFFFF"
    initialize="init();" >
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var htmlImport:String;
    [Bindable]
    public var loader:URLLoader = new URLLoader();
    [Bindable]
    public var request:URLRequest = new
    URLRequest("index.html");
    private function completeHandler(event:Event):void{
    loader = URLLoader(event.target);
    htmlImport = String(loader.data);
    happyTextArea.htmlText = htmlImport;
    public function init():void {
    loader.load(request);
    loader.addEventListener(Event.COMPLETE, completeHandler);
    private function makeHappyButton(event:Event):void
    request.url = 'contact.html';
    loader.load(request);
    ]]>
    </mx:Script>
    <mx:Panel id="happyPanel" layout="absolute"
    percentWidth="100" percentHeight="100" >
    <mx:VBox>
    <mx:TextArea id="happyTextArea" height="400"
    width="300"/>
    <mx:Button id="clickButton" label="click me"
    click="makeHappyButton(event)" />
    </mx:VBox>
    </mx:Panel>
    </mx:Application>
    It could be other code in your application or the html file
    itself, that you are loading the second time around. You could load
    page2 first and see if that is the problem.
    --Andy

  • Threads and progressbar

    hello all,
    I am trying to display a window with an indeterminate progress bar while I am searching through files looking for a particular file. The problem is that when I display the window, the outline of it appears, but never fully displays.......what I attempted to do, was make the window implement runnable. Inside of the run method, I set a JProgressbar to indeterminate and set the window to visible. Right before the code that searches for the file, I created a new thread and gave it an instance of my window class, then called the start method of the thread.
    ex
    class window extends JFrame implements runnable{
    JProgressbar bar = new......
    public void run(){
    bar.setIndeterminate(true);
    this.setVisible(true);
    inside of the main class(which itself is a JFrame)
    Thread temp;
    window mywindow = new window()
    temp = new Thread(mywindow);
    temp.start();
    //searching code here
    mywindow.dispose();
    anybody have any suggestions why the window doesn't display???
    Thanks

    Have you tried it without making the Progress window a thread? Just try opening the window and them starting the search. If that fails, try making the search a separate thread. I would avoid making the window a thread. The swing classes have their own threads running in the background. One thing I found that helps keep windows from freezing is when you have to fire a long process resulting from an actionPerformed event you can do this without writing a lot of code:
    //normal
    actionPerformed(ActionEvent e)
       doSomething();
    //allows window to refresh
    actionPerformed(ActionEvent e)
        new Thread() {
           public void run() {
                doSomething();
        }.start();
    }

  • ButtonBar and ProgressBar all in one

    Anybody have any idea how this ButtonBar + ProgressBar type
    of component was created?
    (See the InsuriCorp example, second one down)
    http://www.adobe.com/devnet/flex/articles/fig_pt6_05.html
    It's really great looking but I'm really not sure how they
    went about it.
    What's the best way to approach this? Mabye a Flash skin, or
    a custom effect, or is there a really easy way that I'm just not
    seeing?

    Unfortunately, no.

  • FileChooser And ProgressBar

    Dear visitor:
    thanks for caring my problems:)
    well,i don' t know how to show a FileChooser in the specific mode i want:the save mode and open mode,and when i select a file in a file chooser,how could i add
    an action listener on the "save" button or the "open" button to save or open a file when i click the button.
    the following question is how to link the progress bar to a thread.for example,
    i am connecting a database or loading an image,how to use the progress bar to show
    exactly how much work has been done,for example,how many percents of the picture has been loaded
    thanks for your help!
    zhile:)

    hi zhile!
    well, you don't need to put an actionlistener on the save or open button of your filechooser...
    you just use sample code:
    JFileChooser fileChooser = new JFileChooser();
    int returnVal = fileChooser.showOpenDialog(null);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    //in case you select a file
    File file = fileChooser.getSelectedFile();
    else
    //selection a file was cancelled
    or didn't i understand you correctly?
    regards,
    majandrah

  • TableViewer and ProgressBar

    I know it is probably not the right place for this request, but I try ;-)
    I'm testing SWT/JFace and I would like to render a progress bar in a cell of a table using TableViewer class (and not only the Table class).
    Any idea?
    Thx

    You're right in that you're wrong to post here. Check out www.eclipse.org and look for the fora there.
    -Mike Schwager

  • IE5 and progressbar

    I use Internet Explorer 5 and weblogic 5.1
              When i call JSP page , the jsp is load complete but the progress-bar of IE5
              is loading the page and it isn´t true, jsp page
              is load.
              May be can somebody explain that.
              Thanks.
              

    Excerpt from from code book "Java Thread Programming" which you can adjust to your situation:
    public class Notify {
    private Object proceedLock;
    private boolean okToProceed;
    public Notify() {
    proceedLock = new Object();
    okToProceed = false;
    public void waitToProceed() throws InterruptedException {
    synchronized(proceedLock) {
    while(okToProceed == false) {
    proceedLock.wait();
    public void proceed() {  //call when the first thread finished its work
    synchronized(proceedLock) {
    okToProceed = true;
    proceedLock.notifyAll();
    Also note, that I wrote you better solution for first time :updating of JProgressBar (as all swing comp.) should be done in event dispatching thread. When you use SwingUtilities.invoke() and invokeLater(), thread (i.e. event dispatching thread) is placed into queue thus waiting for previous task to be finished.
    Please read about it in
    http://java.sun.com/docs/books/tutorial/uiswing/overview/threads.html
    It is very important concept about multithreading and swing gui.

  • URLLoader and FBML

    So I finally got my previous issue sorted out, now I'm running into another problem. The clip runs fine from my server, but when embedded into an FBML page it appears the URLLoader command is not being run. Is this possible? If FB is blocking it, is there a way around it? Thanks in advance!

    Hi,
    Can you please make sure you are registering an event
    listener as shown below. Please ignore this if you already have an
    event listener added, i posted this reply without noticing that you
    had it working for a GET request.
    loader.addEventListener(Event.COMPLETE, fieldUpdated);
    Hope this helps.

  • Help with component progressBar and Loader

    The progress bar doesn't work if the .swf movie that's being loaded is being loaded into another movie. If the loader is on the main stage it works fine both in testing and on the internet.
    For example, I created a parent movie and a child movie with a loader and progressBar. The child movie works perfectly by itself. If I load the child movie into the parent movie the progressBar doesn't work.
    I'm a designer not a programmer. Is there a fix for this?

    When using the Loader component, the progress-bar needs to be in the parent movie to work.

  • A query related to ProgressBar and its placing inside Container

    Hi ,
    I tried an example with  Flex3 ProgressBar .I am posting the scenario in which it was correct in one case and wrong in another case .
    Please tell me what  is wrong here in the wrong case :
    The Program is related to :
    I have button on click of that i will be loading the Image . There is no Button and its event Listener Mentioned here .
    Correct Approach :
    This works fine as the Image and ProgressBar are in the same Container called HBox
    <mx:HBox>
    <mx:Image id="image" autoload="false"/>
    <mx:ProgressBar id="MYPB" source="{image}"/>
    </mx:HBox>
    Wrong Approach :
    The below isn't working as i placed ProgressBar outside the container called as HBox
    <mx:HBox>
    <mx:Image id="image" autoload="false"/>
    </mx:HBox>
    <mx:ProgressBar id="MYPB" source="{image}"/>
    Please share your ideas as why this behaves this way .

    Hi Kiran.
    I don't think either of the approach is wrong , it no way effected by placing the ProgressBar inside a container or outside the container.
    Run the sample application below. It will load for both approaches.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
            <![CDATA[
                public function loadImage1():void {
                  image1.load('assets/liazon_logo.png');
                public function loadImage2():void {
                  image2.load('assets/liazon_logo.png');
            ]]>
        </mx:Script>
    <mx:HBox>
      <mx:Image id="image1" autoLoad="false"/>
    </mx:HBox>
    <mx:ProgressBar id="MYPB1" source="{image1}"/>
    <mx:Button label="Load Image1" click="loadImage1()"/>
    <mx:HBox>
      <mx:Image id="image2" autoLoad="false"/>
      <mx:ProgressBar id="MYPB2" source="{image2}"/>
    </mx:HBox>
    <mx:Button label="Load Image2" click="loadImage2()"/>
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • HTML file loading in Adobe Air + ProgressBar?

    I am developing an AIR application. In that few reports I am showing. I am using HTML files to show the report.
    Action script is preparing/Writing the report contents into a file/
    I am using mx.controls.HTML to show the html file. Since the HTML file is little bigger in 512 MB RAM machine ( when I am running the air app)
    its taking 95%cpu when the page is getting rendered for a long time. Its making other applications unresponsive.
    Would it be possible to show progressbar when the HTML page is rendering?
    Regards
    Penugonda

    i created a similar thread a few weeks back http://forums.adobe.com/thread/619411?tstart=30. I was doing research on this topic for a quite long now but sadly there is no direct way of monitoring the progress of an html loader, it does not offer any progressEvent.Progress to monitor either. and what is more sad is that they haven't done anything about in the latest release of AIR either
    However all is not lost. What you can do is,monitor the progress of your URLRequest  using a URLLoader and once its complete you can use the (htmlloader object).loadString() function to render the html content loaded by the URLLoader :
    var browser:HTMLLoader = new HTMLLoader();
    var urlLoader:URLLoader = new URLLoader(new URLRequest("http://www.youtube.com/"));
    urlLoader.addEventListener(Event.COMPLETE, onUrlLoaderComplete);
    urlLoader.addEventListener(ProgressEvent.PROGRESS, onURLLoaderLoading);
    private function onURLLoaderLoading(e:ProgressEvent):void
         trace("progress = ",Math.round((e.bytesLoaded/e.bytesTotal)*100));
    private function onUrlLoaderComplete(e:Event):void
         browser.loadString(e.target.data);
    cheers!

Maybe you are looking for

  • How to get DP name via script

    Hello, We are migrating from Symantec Altiris to SCCM 2012. In our current environment we have both HP models and now moving towards Lenovo models. We are using both respective Enterprise solutions for managing driver that is HP SSM and Lenovo Thinin

  • Wsimport, mapping of xs:date to java.util.Date via ext file, and -B option

    Summary: JDK 1.7.0_09 and wsimport and xjc that comes with it. Global JAXB binding to map xs:date to java.util.Date I have the following external bindings file: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSch

  • Java API for CVS access

    Hi, I am looking for a third party Java API which i can use to connect to a CVS repository and perform code synch up operations with the repository. If anybody has any informations. Pls let me know. Thanks.

  • Filter on 0ORGUNIT (Organisational Unit)

    I want to filter by Org Unit on a query e.g. only show data for certain org units. However in our Dev system the Org Units have one number and in QA & Prod they are slightly different. How do I write the query in Dev selecting org units with a slight

  • ORA-00932: inconsistent datatypes: expected NUMBER got LONG

    Hi, I am facing problem while issuing the command: ORA-00932: inconsistent datatypes: expected NUMBER got LONG SELECT TEXT FROM USER_VIEWS WHERE TEXT LIKE '%ASCII%' Any help will be needful for me Thanks and Regards