×

Discussion Board

Results 1 to 7 of 7

Thread: The workaround

  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Stockholm, Sweden
    Posts
    30

    Nokia 6600 ignoring <br/> tags

    I brought this up in another thread somewhere, but here it is again... The XHTML browser on the N6600 has some rather interesting quirks. For one, it seems to ignore <br /> tags. For example:

    <table style="width: 174">
    <tr>
    <td align="left">
    <a href="/">Home</a><br />
    <a href="/press/">Press</a><br />
    </td>
    </tr>
    </table>


    This would show up as:
    Home Press

    and not like:
    Home
    Press


    The workaround I found was to use the following coding style:

    <table style="width: 174">
    <tr>
    <td align="left">
    <p><a href="/">Home</a></p>
    <p><a href="/press/">Press</a></p>
    </td>
    </tr>
    </table>


    This is however more verbose - i.e. suboptimal.


    Another rather bizarre issue on the N6600 that I found was that images less than 4 pixels in width or height would be ignored!

    The following code would render into NOTHING.

    <table>
    <tr>
    <td><img src="/pics/blue.gif" width="174" height="1" alt="" /></td>
    </tr>
    </table>

    I would love to have such a thin line on my page... Is there any way to make the 6600 not ignore small pictures?


    Both the <br /> and the <img> issues have I only observed on the N6600, NOT on the N-Gage or the N3650.


    BR,
    Rasmus
    Last edited by deeper; 2003-12-05 at 21:41.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    466
    Hi,

    do these problems occur in both display modes: vertical and normal? There is some known differences in how XHTML MP content is displayed if vertical mode is used.

    Kind regards,
    Satu/Forum Nokia Developer Support

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    Stockholm, Sweden
    Posts
    30
    I can't check that right now. But that is not of importance, as I am looking for a "universal" solution..one that would work regardless of client browser settings...(or at the very least with the factory settings). I'm sure you understand that a disclaimer like "This page will look like hell, unless you apply these advanced settings", would undoubtedly scare some users away from XHTML pages...

    Thus I have to go with the more verbose solution, and use the bigger images...

    I was just interested in the reasoning behind the browser design: "Hey, let's add a setting that ignores <br /> tags and images smaller than 4 pixels, and let's make that the default setting!" Not a very wise design choice, if you ask me. So I reckon there must exist a reason for this design that I have overseen...

    BR,
    Rasmus

  4. #4
    Super Contributor
    Join Date
    May 2003
    Posts
    839
    Hello!

    I checked your first code sample using my server and 6600, it looks on the phone display exactly you want it to look.
    Home and Press one upon the other.


    I also tested the thin line image with my phone and that also works fine.

    -Tum-

  5. #5
    Registered User
    Join Date
    Mar 2003
    Location
    Stockholm, Sweden
    Posts
    30
    Darn, I must have gotten hold of a prototype 6600 or something...

    Another strange thing:

    <table style="width:174px;">
    <tr>
    <td>A</td>
    <td>B</td>
    <td>C</td>
    </tr>
    </table>

    This piece of code generates
    A
    B
    C

    and NOT the intended

    A B C

    Weird bugs. Must probably be phone... how can I check whether it's a prototype or not?

    BR,
    Rasmus

  6. #6
    Registered User
    Join Date
    Dec 2003
    Posts
    1
    yeah!! I got the same problem!!
    I tried displaying tables and it won't come out right!

    for example something that was suppose to show up like
    A B
    C D

    would show up like
    A
    B
    C
    D

    anybody know the solution to this? or is this just a bug that can't be fixed??
    I know the code works fine when I tested on 3 other devices 7600, 3650 and 7650

  7. #7
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    466
    Hi,

    currently Nokia 6600 uses vertical display mode as default. That&acute;s why some XHTML MP content may look incorrect. XHTML MP content should be displayed in normal display mode when the content is served with application/vnd.wap.xhtml+xml MIME type. Vertical display mode is meant for viewing normal HTML web content with text/html MIME type. So, please check the display mode and MIME type configuration.

    Kind regards,
    Satu

Posting Permissions

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