Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User jyus's Avatar
    Join Date
    May 2003
    Posts
    4
    Hi,
    I'm creating an xhtml page that uses jpeg.
    I've read that series 60 xhtml browser supports jpeg except 7650. Before buying a series 60 mobile like 3650 I would like to test in a emulator if the page works correctly.
    The official simulator for series 60 is NMB 4.0 but this one doesn't support jpeg. So, I'm using 5100 sdk that according to documentation supports jpeg.

    My problem is that I can browse .gif perfectly but I can't browse jpeg in 5100 emulator (althought openwave emulator can).

    This is my test code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
    "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>XHTML</title>
    <link rel="stylesheet" href="style.css" type="text/css"/>
    </head>
    <body>
    <p style="text-align: center">gif image<br/>
    <img src="home.gif" alt="imatge gif"/>
    </p>

    <p style="text-align: center">jpg image<br/>
    <img src="next.jpg" alt="imatge jpg"/>
    </p>

    </body>
    </html>

    I have in my webserver (tomcat) the MIME types defined in web.xml.

    I'm stuck.

    Can anybody help me?

  2. #2
    Registered User jyus's Avatar
    Join Date
    May 2003
    Posts
    4
    If anybody is interested..i've found the answer

    5100 browser doesn't accept to show jpeg directly. Instead you have to use a .cod file.

    This is my sample code:

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
    "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>XHTML</title>
    <BASE href="http://localhost:8080/">
    </head>
    <body>

    <p style="text-align: center">gif image<br/>
    <img src="home.gif" alt="imatge gif"/>
    </p>

    <p style="text-align: center"><br/>
    <a href="next.cod">imatge jpg</a>
    </p>
    </body>
    </html>

    And this is next.cod (located in the webserver):

    COD-Name: next
    COD-URL: http://localhost:8080/next.jpg
    COD-Type: image/jpeg
    COD-Size: 5461

  3. #3
    Registered User jyus's Avatar
    Join Date
    May 2003
    Posts
    4
    Finally..I can browse an embedded jpeg in 5100 sdk
    So, it supports both options, embedded and being downloaded with OTA.

    I think the problem was related to the photo I was using. It was too small or too big, or I don't know. But with sizes similars to the screen size it works.

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