×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    64

    Question element attribute setting not work with N97

    Hi,

    I try to control font size from setting menu. When following code works with aptana emulator, it is not working with N97.

    var Element=document.getElementById("MainBody");
    Element.setAttribute("id", "F18");

    I have following body statement in the html

    <body id="MainBody" onload="init()">

    F18 is id seting in the CSS file.

    Any idea why it is working in emulator, when it is not working on the actual device?

    Best Regards

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: element attribute setting not work with N97

    Hi web_tur,

    have you tried if changing the CSS class, instead of the ID, does work?

    Pit

  3. #3
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    64

    Re: element attribute setting not work with N97

    hi,

    I find the solution;

    document.body.style.fontSize = '12px';

    thank you

Similar Threads

  1. 6212 device : how to work with the secure element ?
    By le sage in forum Near Field Communication
    Replies: 13
    Last Post: 2011-11-11, 07:17
  2. Replies: 4
    Last Post: 2010-12-08, 04:28
  3. Setting CEikFormatted-derived Listbox a markable attribute
    By kanzlerkandidat in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-02-16, 18:50
  4. Setting LanguageBaseAttributeIDList attribute with JSR-82
    By Yaiden in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-07-10, 21:20
  5. Setting LanguageBaseAttributeIDList attribute with JSR-82
    By Yaiden in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-07-10, 21:19

Posting Permissions

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