locked
ObjectList and Windows Mobile RRS feed

  • Question

  • User1577742094 posted

    I created a mobile web page with an ObjectList control.  The control works fine on my Treo (running windows mobile 5.0), however, the links do not work on my AT&T tilt (running windows mobile 6.0).  Do I need to somehow enable javascript on my tilt or does it possibly require a configuration change for the webserver to recognize my browser?  Any ideas?  Thank you.

    Monday, January 28, 2008 4:07 PM

Answers

  • User1634317999 posted

    If I test the user Agent string HTC-8900/1.2 Mozilla/4.0 (compatible: MSIE 6.0; Windows CE; IEMobile 7.6) UP.Link/6.3.1.17.0 I get the mobile capability

    JavaScript = false

    And thats the reason why your ObjectList does not work.

    Why is JavaScript false? Because of the part UP.Link/6.3.1.17.0 I . I would suggest to set the JavaScript capability to true via a browser file or via the Web.config

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 30, 2008 5:04 AM

All replies

  • User1634317999 posted

    I would guess this behavior is caused by the fact that IEMobile of Windows Mobile 6.0 is not recognized correctly by the .NET Framework. JScript is enabled by default.

    Try to add the following browser definition file to your application:

      

    <!--
        You can find existing browser definitions at
        <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers
    -->
    <browsers>
      <browser id="IEMobile" parentID="WinCE">
        <identification>
          <userAgent match="IEMobile (?'version'\d+\.\d+)" />
        </identification>
    
        
        <capabilities>
          <capability name="browser" value="IEMobile" />
          <capability name="version" value="${version}" />
          <capability name="w3cdomversion" value="1.0" />
          <capability name="supportsXmlHttp" value="true" />
          <capability name="SupportsCallback" value="true" />
          <capability name="JScriptVersion" value="5.6" />
          <capability name="EcmaScriptVersion" value="1.5" />
        </capabilities>
      </browser>
    
      <browser id="IEMobileNoneAJAXCapable" parentID="IEMobile">
        <identification>
          <capability name="version" match="6\.8" />
        </identification>
    
        <capabilities>
          <capability name="w3cdomversion" value="0.0" />
        </capabilities>
      </browser>
    
    </browsers>
    
     

     

    Tuesday, January 29, 2008 11:20 AM
  • User1634317999 posted

    I have to correct myself:

    The ObjectList should work with Windows Mobile 6 without changing the configuration of the .NET Framework.

    Could you please test if the ObjectList you find under the following link is working?

    http://samples.gotdotnet.com/MobileQuickStart/(S(5s4y243imqjkm055liaxv355))/Samples/ListControls/vb/ObjectList.aspx 

    You should also try to use the Layout Meta Tag because IEMobile shows a different behavior if it is used:

     
    <meta name="MobileOptimized" content="240">
    
     
    Tuesday, January 29, 2008 12:15 PM
  • User1577742094 posted

    Yes, the ObjectList in the above link works on my AT&T tilt.  The ObjectList in my application does not work. 

    When looking at browserhawk on the Treo, my browser is listed as "IE",  javascript available is "true" and the user agent string is: 
    "Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)".  When looking at browserhawk on the AT&T tilt, my browser is listed as
    "Default",  javascript available is "false" and the user agent string is:  "HTC-8900/1.2 Mozilla/4.0 (compatible: MSIE 6.0; Windows CE;
    IEMobile 7.6) UP.Link/6.3.1.17.0

     I'm going to review the browser definition files as you suggested.

    Tuesday, January 29, 2008 1:55 PM
  • User1634317999 posted

    If I test the user Agent string HTC-8900/1.2 Mozilla/4.0 (compatible: MSIE 6.0; Windows CE; IEMobile 7.6) UP.Link/6.3.1.17.0 I get the mobile capability

    JavaScript = false

    And thats the reason why your ObjectList does not work.

    Why is JavaScript false? Because of the part UP.Link/6.3.1.17.0 I . I would suggest to set the JavaScript capability to true via a browser file or via the Web.config

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 30, 2008 5:04 AM
  • User1577742094 posted

    I opted to change the web.config file by adding:

    <browserCaps><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>      javascript=true<o:p></o:p>

    </browserCaps>

     

    The problem is now resolved.  Thank you very much for your assistance.

    Wednesday, January 30, 2008 9:58 AM