×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Browser Control API - page loading finished?

    Hi,

    I am wondering if someone can answer the following:

    The Browser Control API has an observer class to monitor the progress of loading a page in the embedded browser. This is MBrCtlLoadEventObserver.

    There is one method:

    virtual void HandleBrowserLoadEventL(TBrCtlDefs::TBrCtlLoadEvent aLoadEvent, TUint aSize, TUint16 aTransactionId)

    TBrCtlLoadEvent is an enumeration of of loading events. I am loading a local XHTML file with an embedded SWF object. If have put logging into HandleBrowserLoadEventL and I see the event EEventContentFinished three times. How do I know when loading has been finished? How do I know for an abitrary XHTML page with multiple embedded objects how many times EEventContentFinished will happen before the complete page is loaded?

    Best regards,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  2. #2
    Registered User
    Join Date
    Jan 2007
    Location
    India
    Posts
    25

    Re: Browser Control API - page loading finished?

    Hi,

    I have same issue u mentioned above. I am using simple HTML page with LoadDataL() of browser control library (browserengine.lib).

    first , I tried on S60 3rd devices, It gave me 3-4 times EEventFinished for a page.

    then, I tried the same page on S60 3rd FP1 device. The event came only once and page got loaded.

    I am aware of changes they have made in FP1. But this is a very strange behaviour.

    Please help me, if you find anything on this.

    -Thanks & Regards
    Manasi.

  3. #3
    Registered User
    Join Date
    Jan 2007
    Location
    India
    Posts
    25

    Re: Browser Control API - page loading finished?

    Hi Rene,

    Any updates on the issue of multiple 'EEventFinished' events??

  4. #4
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: Browser Control API - page loading finished?

    Well - I tested on N95 and indeed the EEventFinished event only comes once.

    My problem is I want to put focus to the embedded Flash object immediately after the local XHTML page has been loaded (Using ECommandOpen). This seems not possible. Only after the page has been rendered (for which I do not know which callback I could use from S60), it does accept the ECommandOpen. I used a timer to wait a while - only it's unsure how long the "wait a while" should be on different 3.1 hardware.

    BR,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  5. #5
    Registered User
    Join Date
    Jan 2007
    Location
    India
    Posts
    25

    Re: Browser Control API - page loading finished?

    Hi Rene,

    As per my knowledge, LoadEventObserver is the only interface which gives back events of data load progress.
    In my case , I want to show a progressbar till the page is fully loaded. For this, I need to know the end of loading. In S60 3rd I am not able to because of the issue and FP1 renders the browser data quite fast, so i dont need progress bar there .

    Which browser API are you using to load data ?

    anyway, please update me if you find anything more on this.

    -Regards
    Manasi..

  6. #6
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: Browser Control API - page loading finished?

    I am using:

    IMPORT_C virtual void LoadFileL (const TDesC& aFileName)

    The XHTML file I am loading has an embedded Flash SWF object. The rendering does not go so fast (well ... it depends on how you define fast). At least on the device you can see a little boat icon before the file gets loaded and rendered (so it's not lightning fast).

    BR,

    Rene
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  7. #7
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    128

    Re: Browser Control API - page loading finished?

    Where do you display the progress bar? Is it a dilaog?

  8. #8
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: Browser Control API - page loading finished?

    There is no progress bar or dialog shown. The browser control is placed on a container. The container is embedded in a view.
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  9. #9
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    128

    Re: Browser Control API - page loading finished?

    mmm...I havent experimented your problem.

    I wonder if you guys know how could display a progressbar? Is any way to know how long will it take to load a page? I mean, there are events for starting and finishing but how I can figure out the total time. Maybe there is any trick to figure out it, using thye downloader manager or something like that. I guess it is simplier than that.

Similar Threads

  1. Web browser as a control in my C++ App
    By natocm in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-03-03, 16:38
  2. Replies: 8
    Last Post: 2003-12-02, 08:53
  3. Replies: 0
    Last Post: 2002-11-28, 09:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •