×

Discussion Board

Results 1 to 7 of 7

Thread: Order in UA

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    10

    Order in UA

    Hi,
    i have been searching for this, but to no avail,

    my Q. is is there any sort of order in the User Agents which the mobile sends out,

    like my mobile sends out UA:
    --------------------
    application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, application/vnd.wap.wbxml, image/gif, image/vnd.wap.wbmp, application/vnd.wap.sic, image/jpeg, text/vnd.sun.j2me.app-descriptor, application/java-archive, application/vnd.smaf, application/x-midi, audio/mid, audio/midi, audio/x-mid, audio/x-midi, text/x-imelody, text/x-imelody, audio/imelody, application/vnd.wap.mms-message, application/vnd.oma.drm.message, application/*, text/x-vcard, text/x-vcalendar, text/vnd.wap.sl, text/vnd.wap.si, text/vnd.wap.wml, text/html, text/plain, text/vnd.wap.co, text/x-wap-wta-wml, text/vnd.wap.wmlscript, text/vnd.wap.channel, text/vnd.wap.connectivity-xml

    --------------------

    As you see "text/vnd.wap.wml", comes b4 "text/html"

    But since both are there, and have q value of 1
    what kind of content should i offer it WAP1.0 or imode/ chtml?

    Is there a better way of handling this conflict?

    Regards,
    Rahul.

    PS: also when i send chtml to my phone i cant see any textbox <input /> on my screen?
    google.com sends me wml, and there i can see its textbox ?

    phone: samsung sgh-x160 ; Nokia browser 3.0.1
    Last edited by rahul2435; 2007-08-29 at 07:19.

  2. #2
    Super Contributor
    Join Date
    May 2003
    Posts
    839

    Re: Order in UA

    Hello,

    I think that text/html doesn't mean in this point that it supporting full web browsing. I have myself tried to check out the device and after that read the UAProf file, which example Nokia devices tels that is it supporting WAP 1.0 or WAP 2.0.

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    10

    Re: Order in UA

    ------------------------

    Deleted ,


    ------------------------
    Last edited by rahul2435; 2007-08-31 at 00:20.

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    10

    Re: Order in UA

    Hi,
    i found this :
    http://tools.ietf.org/html/rfc3282

    which says :
    If no Q values are given, the language-ranges are given in priority order,
    with the leftmost language-range being the most preferred language;
    this is an extension to the HTTP/1.1 rules, but matches current
    practice.
    Does this apply to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

    If someone from the Nokia team could answer this?
    to the effect is this is taken in practice or not.

    EDIT:
    Quote Originally Posted by Tumpelo View Post
    Hello,
    I think that text/html doesn't mean in this point that it supporting full web browsing. I have myself tried to check out the device and after that read the UAProf file, which example Nokia devices tels that is it supporting WAP 1.0 or WAP 2.0.
    Thanx Tumpelo, you were right text/html with text/vnd.wap.wml should be given WAP2.0,
    im still trying to find more inputs here, will post when i have something,

    If someone can answer the Q above ???

    Thanx
    Rahul
    Last edited by rahul2435; 2007-08-31 at 00:23.

  5. #5
    Registered User
    Join Date
    Feb 2006
    Location
    Brazil
    Posts
    523

    Re: Order in UA

    Quote Originally Posted by rahul2435 View Post
    ...PS: also when i send chtml to my phone i cant see any textbox <input /> on my screen?
    google.com sends me wml, and there i can see its textbox ?...
    In what context <input> tag fits in that chtml page you're having problems with?
    Depending on the case, you might need to remove "/" from the tag
    For example, use
    Code:
    <input value="text">
    instead
    Code:
    <input value="text" />
    Could you please post the source code of your page?


    best regards
    Http_user_agent:
    NokiaN80-1/3.0 (4.0707.0.7)
    Series60/3.0
    Profile/MIDP-2.0
    Configuration/CLDC-1.1

  6. #6
    Registered User
    Join Date
    Aug 2007
    Posts
    10

    Re: Order in UA

    Hi,
    i tried that, but still doesnt work, i see the submit Button, but not the textbox when recieving cHTML,

    when recieving WML and XHTML MP i see a textbox.

    im using it as a searchbox

    the following is the code:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">
    <html>
    <head>
    	<title></title>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <table border="0" cellspacing="0" cellpadding="2">
     <tr bgcolor="#dddddd"><td bgcolor="#dddddd">
    	<img src="/wap/images/logo.gif" width="80" height="25" alt="">
     </td></tr>
     <tr bgcolor="#4aa0e0"><td>TITLE</td></tr>
     <tr bgcolor="#4aa0e0"><td><b>Search</b></td></tr>
     <tr bgcolor="#efefef"><td>
     <form method="get" name="searchform" action="/wap/">
    	<input type="text" name="search" maxlength="255" size="10" value="">&nbsp;
    	<input type="submit" value=" Go ">
     </form>
     </td></tr>
     <tr bgcolor="#dddddd"><td>Copyright</td></tr>
    </table>
    </body>
    </html>

    If i move the <form> tag outside the table, then im not even getting the Submit button!

    Regards,

  7. #7
    Registered User
    Join Date
    Feb 2006
    Location
    Brazil
    Posts
    523

    Re: Order in UA

    Quote Originally Posted by rahul2435 View Post
    Hi,
    i tried that, but still doesnt work, i see the submit Button, but not the textbox when recieving cHTML,

    when recieving WML and XHTML MP i see a textbox.

    im using it as a searchbox

    the following is the code:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">
    <html>
    <head>
     <title></title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <table border="0" cellspacing="0" cellpadding="2">
     <tr bgcolor="#dddddd"><td bgcolor="#dddddd">
     <img src="/wap/images/logo.gif" width="80" height="25" alt="">
     </td></tr>
     <tr bgcolor="#4aa0e0"><td>TITLE</td></tr>
     <tr bgcolor="#4aa0e0"><td><b>Search</b></td></tr>
     <tr bgcolor="#efefef"><td>
     <form method="get" name="searchform" action="/wap/">
     <input type="text" name="search" maxlength="255" size="10" value="">&nbsp;
     <input type="submit" value=" Go ">
     </form>
     </td></tr>
     <tr bgcolor="#dddddd"><td>Copyright</td></tr>
    </table>
    </body>
    </html>

    If i move the <form> tag outside the table, then im not even getting the Submit button!

    Regards,
    what is the browser you're having this problem?I've tested the page in two mobile browsers (Opera Symbian and N90 S60 browser) and all works good.


    best regards
    Http_user_agent:
    NokiaN80-1/3.0 (4.0707.0.7)
    Series60/3.0
    Profile/MIDP-2.0
    Configuration/CLDC-1.1

Similar Threads

  1. Retreive dictionary objects in correct order...
    By madsbjoern in forum Symbian
    Replies: 5
    Last Post: 2007-02-13, 17:41
  2. Wish for Carbide C++ Pro: change the include order of .h files in a .cpp file
    By svdwal in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2006-10-20, 16:01
  3. Order Taking via ecommerce on phone
    By jdmoran99 in forum Mobile Commerce
    Replies: 0
    Last Post: 2004-06-19, 07:01
  4. callSerially events dispatched in reverse order
    By jon@zeta.org.au in forum Mobile Java General
    Replies: 0
    Last Post: 2004-05-20, 15:10
  5. Random order of MMS parts
    By karib in forum General Messaging
    Replies: 3
    Last Post: 2002-10-29, 21:40

Posting Permissions

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