Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery Mobile error on Windows Phone 7 (using Zend)
    text
    copied!<p>I'm building a web app in jQuery Mobile, and I've tested it on IOS and Android with no difficulties. WebOS has some rendering problems, but nothing major. But when I tested the app with Windows Phone 7, everything broke.</p> <p>The jQuery Mobile kitchen sink demo works fine-- I thought it might be something with the javascript on my end, so I removed all of it. However, this didn't fix the problem. Since WP7 has no error console to speak of, it's very hard to diagnose what's happening.</p> <p>Here it is: <a href="http://abolition.me/wp7.php" rel="nofollow">http://abolition.me/wp7.php</a></p> <p>I dumped the headers into my Zend log after clicking the same link in Chrome and WP7, and here's what I got:</p> <p>wp7:</p> <pre><code>[REDIRECT_STATUS] =&gt; 200 [HTTP_X_REQUESTED_WITH] =&gt; XMLHttpRequest [HTTP_ACCEPT_LANGUAGE] =&gt; en-us [HTTP_REFERER] =&gt; http://mobile.kinitawp7.designitfor.us/mobile#/mobile/tasks?filter=Open [HTTP_ACCEPT] =&gt; text/html, */*; q=0.01 [HTTP_UA_CPU] =&gt; x86 [HTTP_ACCEPT_ENCODING] =&gt; gzip, deflate [HTTP_USER_AGENT] =&gt; Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; Microsoft; XDeviceEmulator) [HTTP_HOST] =&gt; mobile.kinitawp7.designitfor.us [HTTP_COOKIE] =&gt; &lt;censored&gt; [HTTP_VIA] =&gt; &lt;censored&gt; [HTTP_X_FORWARDED_FOR] =&gt; &lt;censored&gt; [HTTP_CACHE_CONTROL] =&gt; max-age=259200 [HTTP_CONNECTION] =&gt; keep-alive [PATH] =&gt; /usr/local/bin:/usr/bin:/bin [SERVER_SIGNATURE] =&gt; &lt;address&gt;Apache/2.2.16 (Ubuntu) Server at mobile.kinitawp7.designitfor.us Port 80&lt;/address&gt; [SERVER_SOFTWARE] =&gt; Apache/2.2.16 (Ubuntu) [SERVER_NAME] =&gt; mobile.kinitawp7.designitfor.us [SERVER_ADDR] =&gt; 50.56.102.225 [SERVER_PORT] =&gt; 80 [REMOTE_ADDR] =&gt; 50.84.91.226 [DOCUMENT_ROOT] =&gt; /var/www/kinita_branch/mobile.uwn.me/Website [SERVER_ADMIN] =&gt; [no address given] [SCRIPT_FILENAME] =&gt; /var/www/kinita_branch/mobile.uwn.me/Website/index.php [REMOTE_PORT] =&gt; 46576 [REDIRECT_URL] =&gt; /viewtask/84 [GATEWAY_INTERFACE] =&gt; CGI/1.1 [SERVER_PROTOCOL] =&gt; HTTP/1.1 [REQUEST_METHOD] =&gt; GET [QUERY_STRING] =&gt; [REQUEST_URI] =&gt; /viewtask/84 [SCRIPT_NAME] =&gt; /index.php [PHP_SELF] =&gt; /index.php [REQUEST_TIME] =&gt; 1307642025 </code></pre> <p>and here it is from Chrome:</p> <pre><code>[REDIRECT_STATUS] =&gt; 200 [HTTP_HOST] =&gt; mobile.kinitawp7.designitfor.us [HTTP_REFERER] =&gt; http://mobile.kinitawp7.designitfor.us/mobile [HTTP_X_REQUESTED_WITH] =&gt; XMLHttpRequest [HTTP_USER_AGENT] =&gt; Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_6) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.91 Safari/534.30 [HTTP_ACCEPT] =&gt; text/html, */*; q=0.01 [HTTP_ACCEPT_ENCODING] =&gt; gzip,deflate,sdch [HTTP_ACCEPT_LANGUAGE] =&gt; en-US,en;q=0.8 [HTTP_ACCEPT_CHARSET] =&gt; ISO-8859-1,utf-8;q=0.7,*;q=0.3 [HTTP_COOKIE] =&gt; &lt;censored&gt; [HTTP_VIA] =&gt; &lt;censored&gt; [HTTP_X_FORWARDED_FOR] =&gt; &lt;censored&gt; [HTTP_CACHE_CONTROL] =&gt; max-age=259200 [HTTP_CONNECTION] =&gt; keep-alive [PATH] =&gt; /usr/local/bin:/usr/bin:/bin [SERVER_SIGNATURE] =&gt; &lt;address&gt;Apache/2.2.16 (Ubuntu) Server at mobile.kinitawp7.designitfor.us Port 80&lt;/address&gt; [SERVER_SOFTWARE] =&gt; Apache/2.2.16 (Ubuntu) [SERVER_NAME] =&gt; mobile.kinitawp7.designitfor.us [SERVER_ADDR] =&gt; 50.56.102.225 [SERVER_PORT] =&gt; 80 [REMOTE_ADDR] =&gt; 50.84.91.226 [DOCUMENT_ROOT] =&gt; /var/www/kinita_branch/mobile.uwn.me/Website [SERVER_ADMIN] =&gt; [no address given] [SCRIPT_FILENAME] =&gt; /var/www/kinita_branch/mobile.uwn.me/Website/index.php [REMOTE_PORT] =&gt; 47085 [REDIRECT_URL] =&gt; /mobile/viewtask/84 [GATEWAY_INTERFACE] =&gt; CGI/1.1 [SERVER_PROTOCOL] =&gt; HTTP/1.1 [REQUEST_METHOD] =&gt; GET [QUERY_STRING] =&gt; [REQUEST_URI] =&gt; /mobile/viewtask/84 [SCRIPT_NAME] =&gt; /index.php [PHP_SELF] =&gt; /index.php [REQUEST_TIME] =&gt; 1307642163 </code></pre> <p>The problem is that WP7 is omitting /mobile from its request.</p> <p>Any thoughts? Have you seen anything like this before?</p> <p>It should be noted that if I visit the urls directly (i.e. <code>/mobile/viewtask/90</code>), it works. The problem seems to involve the way jQM does navigation.</p> <p>Thanks!</p> <p>Link to JQM issue report: <a href="https://github.com/jquery/jquery-mobile/issues/1796" rel="nofollow">https://github.com/jquery/jquery-mobile/issues/1796</a></p> <p>Edit: It should be noted that I'm using the Zend framework.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload