×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    1

    How to get screen resolution of Nokia C1-01 and C2-01 using java script and php?

    Dear All,

    I have developed a WAP site as i want to get the screen resolution of Nokia C1-01 and C2-01, i am using java script and PHP for the same.


    My code is here :

    <script language="javascript">
    width = screen.width;
    height = screen.height;
    document.write(
    "Screen width = "+width+"<br>"
    +"Screen height = "+height
    )
    </script>

    This script is working on nokia other devices like E71, Express Music and other brands mobiles as well but not working on Nokia C1-01 and C2-01.

    Is there any alternate to solve this problem?

    Thanks in advance.

  2. #2
    Nokia Developer Champion
    Join Date
    Aug 2008
    Location
    Vadodara, India.
    Posts
    911

    Re: How to get screen resolution of Nokia C1-01 and C2-01 using java script and php?

    AFAIK, It should work.

    Also I suggest to post your question in a appropriate category and in this case it is "Web Development". So You can get reply from Nokia Experts.

    Chintan.
    Nokia Developer Wiki Moderation team
    World's Greatest Speeches for Windows Phone is now available on WP Marketplace.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: How to get screen resolution of Nokia C1-01 and C2-01 using java script and php?

    The question is moved there now.

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: How to get screen resolution of Nokia C1-01 and C2-01 using java script and php?

    Hi nirav171 and welcome to forum!

    What Browser are you using in testing. Original Series 40 browser or Nokia browser?

    Br,
    Ilkka

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    5

    Re: How to get screen resolution of Nokia C1-01 and C2-01 using java script and php?

    You are just need javascript, but i have same question.

    Where you test this script ?

  6. #6
    Registered User
    Join Date
    Aug 2012
    Posts
    1

    Re: How to get screen resolution of Nokia C1-01 and C2-01 using java script and php?

    I just want to asked is it possible that i can install a java script to my nokia c1-01?

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: How to get screen resolution of Nokia C1-01 and C2-01 using java script and php?

    Quote Originally Posted by marianlee View Post
    I just want to asked is it possible that i can install a java script to my nokia c1-01?
    Are you sure you know what JavaScript is?

    The C1-01 supports the Java programming language and runtime environment in the form of JME (Java Micro Edition) applications, also known as MIDlet.

    The C1-01 has also a web/WAP browser, or two, and within the web (HTML) pages you can include/embed JavaScript programming language code (but there are probably limitations due to the restricted nature of the phone, so everything that JavaScript can do on, e.g., a PC based web browser, won't work on the phone).

Similar Threads

  1. Replies: 2
    Last Post: 2011-01-24, 09:18
  2. Java Games Screen Resolution
    By edwin756 in forum Mobile Java Games
    Replies: 4
    Last Post: 2008-10-31, 06:29
  3. URGENT!! N73 MAX RESOLUTION in script
    By marce002 in forum Symbian
    Replies: 2
    Last Post: 2007-11-29, 10:20
  4. Nokia 6680 - Screen resolution (dpi)
    By ama101 in forum Streaming and Video
    Replies: 3
    Last Post: 2006-05-09, 14:11
  5. Nokia 8800 Java Resolution Queries??
    By mark_a_thorpe in forum General Development Questions
    Replies: 1
    Last Post: 2005-07-18, 20:02

Posting Permissions

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