Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User WolfgangDamm's Avatar
    Join Date
    Jan 2008
    Posts
    29
    Hi,

    I am using the Browser Control to display a simple locally stored html help page. Which works well except for images which are not drawn. The html is pretty simple:

    Code:
    <html>
    <head>
    <title>Title</title>
    </head>
    <body>
    <img src="logo.png"/>
    </body>
    The image is definitely there, because changing "src" to something not accessible gives a broken link image.

    Another funny thing is that images from the web are displayed correctly. I tried LoadFileL and LoadUrlL both do not show the local images.

    I create the browser control as follows:
    Code:
            TUint brCtlCapabilities = TBrCtlDefs::ECapabilityDisplayScrollBar
    			| TBrCtlDefs::ECapabilityLoadHttpFw
    			| TBrCtlDefs::ECapabilityToolBar;
    	iBrCtlInterface = CreateBrowserControlL(this, r, brCtlCapabilities,
    			commandBase, NULL, this, this, NULL, NULL);
    Testing on N97 and N97 mini with FW 11.0.021 and FW 10.0.020.

    Did anybody encounter the same problem or knows what I am doing wrong?

    Any help highly appreciated!

  2. #2
    Super Contributor oracle3's Avatar
    Join Date
    Sep 2007
    Posts
    1,005
    Quote Originally Posted by WolfgangDamm View Post
    Hi,

    I am using the Browser Control to display a simple locally stored html help page. Which works well except for images which are not drawn. The html is pretty simple:

    Code:
    <html>
    <head>
    <title>Title</title>
    </head>
    <body>
    <img src="logo.png"/>
    </body>
    The image is definitely there, because changing "src" to something not accessible gives a broken link image.

    Another funny thing is that images from the web are displayed correctly. I tried LoadFileL and LoadUrlL both do not show the local images.

    I create the browser control as follows:
    Code:
            TUint brCtlCapabilities = TBrCtlDefs::ECapabilityDisplayScrollBar
    			| TBrCtlDefs::ECapabilityLoadHttpFw
    			| TBrCtlDefs::ECapabilityToolBar;
    	iBrCtlInterface = CreateBrowserControlL(this, r, brCtlCapabilities,
    			commandBase, NULL, this, this, NULL, NULL);
    Testing on N97 and N97 mini with FW 11.0.021 and FW 10.0.020.

    Did anybody encounter the same problem or knows what I am doing wrong?

    Any help highly appreciated!
    that's weird, but i do doubt if u had put the png file in the right location.
    since u got the web images well, thus i suppose ur implement logic should be ok.
    though i haven't test it at all,
    u can try put the png file on z:\sys\bin\ in the device.

  3. #3
    Registered User agaace's Avatar
    Join Date
    Dec 2009
    Posts
    4
    I've got the same issue. Images used to work for me previously but now stopped working - they're blank. The same image files. In the same app code. The html is just different (I removed everything and just left an image in my html file).
    I spent 4 hours trying to figure it out!
    When I change image size (with CSS) to let's say 150% of it's real size - it displays (of course, scaled, and only partial (??) and it only works for some sizes and doesn't work for other??), but when I set no size or it's real size it's blank.
    I tried clearing cache - didn't help.
    Last edited by agaace; 2010-02-04 at 04:35.

  4. #4
    Registered User agaace's Avatar
    Join Date
    Dec 2009
    Posts
    4
    There's definitely a bug there. The random behavior depends on the image dpi. Jpegs with 72 dpi seem to either render ok, or partially ok. Jpegs with 96 dpi appear blank. Png images are unpredictable.
    I finally found a workaround: after loading the local html document that contains local images, call iBrCtlInterface->SetExtent(Position(), Size()); This basically sets the control's size to the same size it already has. Surprisingly enough, calling iBrCtlInterface->DrawNow(); doesn't work at all! Weird, very weird and buggy behavior.. observed on the latest Nokia N97 SDK.

Similar Threads

  1. Replies: 1
    Last Post: 2009-09-16, 02:31
  2. A browser control issue.
    By cchheenn0914 in forum Symbian C++
    Replies: 1
    Last Post: 2009-07-03, 12:31
  3. Can you review my python files...?
    By xitopodo in forum Python
    Replies: 6
    Last Post: 2009-06-29, 09:49
  4. Issue with links to anchor in the CBrCtlInterface Browser Control of S60 3rd FP1
    By manasi_d in forum Symbian Networking & Messaging (Closed)
    Replies: 16
    Last Post: 2008-04-10, 12:45
  5. WML & WMLSCript problem ????
    By gemini_shooter in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-14, 06:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved