Browser Control API problem

Login to reply to this topic.
Wed, 2008-05-21 09:46
Joined: 2008-05-07
Forum posts: 6

Hi,

I am trying to make simple application that will just display some web page. I am using following code to do it:

void CBrowseAndSaveAppView::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
ActivateL();

iBrCtlInterface = CreateBrowserControlL( this,
aRect,
TBrCtlDefs::ECapabilityDisplayScrollBar | TBrCtlDefs::ECapabilityLoadHttpFw | TBrCtlDefs::ECapabilitySavedPage,
TBrCtlDefs::ECommandIdBase,
NULL,
NULL,
NULL,
NULL,
NULL);
iBrCtlInterface->ActivateL();

iBrCtlInterface->LoadUrlL( ... );

}

Application connects to internet a it seems the page is displayed correctly. But immadiate after page is shown (i am not sure if it is during load or after page is loaded completly) I am getting system error (-12) (shuold be KErrPathNotFound). After error dialog page disappears another try to call iBrCtlInterface->LoadUrlL() will crash application. I do not understand why I am getting this error, and what can be a reason. Any idea?

Thanks


Wed, 2008-07-23 10:57
Joined: 2007-01-17
Forum posts: 96
Re: Browser Control API problem

the Browser Launcher API has just been made public , it is very easy to use, follow the URL:


Shashi Kiran G M

Wed, 2008-07-23 08:38
Joined: 2007-09-24
Forum posts: 80
Re: Browser Control API problem

Hi Shashi

he Browser Launcher API has just been made public , it is very easy to use, follow the URL

http://wiki.forum.nokia.com/index.php/Browser_Launcher_API


if i click on above URL I receive a message
The URL is not valid and can'nt be loaded

Thanks and Regard
Praveen Kumar Sharma

Wed, 2008-07-23 09:50
Joined: 2005-11-20
Forum posts: 1157
Re: Browser Control API problem

That's funny: The link in gmsk19's post has a problem and indeed does not work. However, your quote of the post does work. Just click on the link in your own post now Smiling


René Brunner

Wed, 2008-07-23 10:22
Joined: 2007-09-24
Forum posts: 80
Re: Browser Control API problem

hi rbrunner
I think It is a bug in NewLC We need to inform them ,just kidding , surprise dude How is It working in my post
Thanks and Regard
Praveen Kumar Sharma

Wed, 2008-07-23 10:58
Joined: 2007-01-17
Forum posts: 96
Re: Browser Control API problem

Arrey !!! y the fuss use copy paste


Shashi Kiran G M

Wed, 2008-08-06 11:53
Joined: 2008-06-23
Forum posts: 83
Re: Browser Control API problem

Hi,

It seems to me that it depends on the page contents whether you get the KErrPathNotFound or not. If it is shown when loading a given page, I get it every time, so at least it may be "predictable". Unfortunately I don't know the reason for it. Gradually eliminating parts of the webpage could get you to the root of the problem, though even that wouldn't be any help for us... As for me, having been using the API for some time, I just added this issue to my how-the-browser-control-api-drives-me-mad list. Believe me, it's getting loooong...

Br

  • Login to reply to this topic.