Browser Control API query Is it Possible ?

Login to reply to this topic.
Wed, 2006-12-27 13:50
Joined: 2004-12-09
Forum posts: 78
Hi all
       I am using the browser control API to load web pages into my application from a http server. My question is can I filter out some data from that HTML page that I receive using the Browser control API and then display it in the browser of my application ? Is it possible using the Browser Control API or I have to use some other HTTP client to do it ?
         
Girish

Thu, 2007-01-18 01:08
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Browser Control API query Is it Possible ?
Girish,

I don't think it's possible with the Browser Control API what you're looking for. You know, the API expects a URL from you and download everything - it's its sole responsibility to handle both downloading AND rendering. I'm not aware of any APIs that makes it possible to have any influence on this filtering method you're looking for.

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Thu, 2007-01-18 01:20
Joined: 2006-10-07
Forum posts: 131
Re: Browser Control API query Is it Possible ?
What about fetching the page with HTTP Client API, saving the file locally, and opening it with browser API?
Thu, 2007-01-18 09:17
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Browser Control API query Is it Possible ?
That surely works.

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Tue, 2007-01-23 11:32
Joined: 2004-12-09
Forum posts: 78
Re: Browser Control API query Is it Possible ?
Hi thanks for the answer , its not possible with the browser application. But the problem using with HTTP client is that every time we need to save the page some where in  a kind of private folder and then launch the browser.
           Other problem is that if we open the page in the browser again and send some data  say like the waywhen we create a yahoo or a mail account then control goes back to the browser api, which then send the data back to the listening server and its then redirects you to some other page (which again has to be filtered ) Sad   so the same problem continues as now we are in browser api now .

Tue, 2007-01-23 16:19
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Browser Control API query Is it Possible ?
Have you explored the following things:
- TBrCtlCapabilities::ECapabilityClientResolveEmbeddedURL and TBrCtlCapabilities::ECapabilityClientNotifyURL ==> maybe you could have stronger influence on how Browser Control downloads files (embedded or not),
- CBrCtlInterface::SetSelfDownloadContentTypesL ==> if you want BrCtl not to consume html content itself, then you might want to change this behavior,
- MBrCtlLoadEventObserver and MBrCtlDataLoadConsumer mixins ==> you might want to be well-informed on what is happening inside the Browser Control.

Let me know what you could figure out based on above mentioned information!

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Tue, 2007-01-23 17:01
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Browser Control API query Is it Possible ?
One more thing: I can't see why you have to save your files in a private data cage. Even Browser Control's Download Manager doesn't do that.

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Tue, 2007-06-26 09:16
Joined: 2005-06-23
Forum posts: 21
unable to display the web content using Browser Control API ?

This is how i am try to display the web content using Browser Control API's,
can anybody tell me where i am wrong?

iLmBrCtlInterface = CreateBrowserControlL( this,
rect,
TBrCtlDefs::ECapabilityLaunchViewer | TBrCtlDefs::ECapabilityLoadHttpFw,
iCommandBase,
NULL,
NULL,
NULL,
NULL,
NULL);
}

_LIT(KUrl, "http://www.google.com");

iLmBrCtlInterface->LoadUrlL( KUrl );

Thanks in Advacne,
Raj

Mon, 2007-07-23 10:52
Joined: 2006-10-17
Forum posts: 85
Re: Browser Control API query Is it Possible ?

Hi yerramraju,

you have to activate browser control before loading web page:

iLmBrCtlInterface->ActivateL();

Bye, Luca

  • Login to reply to this topic.