Thank you very much, Sergey!
Your advice with X-UA-Compatible meta tag helped us a lot! :)
1) No, it doesn't just load content from mentioned URL. Instead, it firstly loads follow content from local storage. Then I click on second link to navigate it to jqmobile doc page or to my standalone page.
As you can see it has doctype definition and links to external pages.
layout.erb (it substitutes <%= @content %> with content of each exact page, look below for pages)
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Store</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9">
- <script src="/public/jquery/jquery-1.6.4.js" type="text/javascript"></script>
- <script src="/public/jquery/jquery.json-2.3.js" type="text/javascript"></script>
- <!-- here is AJAX proxy/wrapper for local server on WP7.0 platform -->
- <script type="text/javascript" charset="utf-8" src="/public/js/jquery-wp7-patch.js"></script>
- <link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.0.1.css">
- <script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.0.1.js"></script>
- <link href="/public/css/windows_phone7.css" type="text/css" rel="stylesheet"/>
- </head>
- <body>
- <%= @content %>
- </body>
- </html>
index.erb
- <div data-role="page">
- <div data-role="header" data-position="inline">
- <h1>Wp7</h1>
- </div>
- <div data-role="content">
- <ul data-role="listview">
- <li><a href="http://192.168.0.176:8080/wp7css/index.htm" rel="external" data-ajax="false">page stub</a></li>
- <li><a href="http://jquerymobile.com/demos/1.0.1/docs/forms/forms-all.html">JQMobile forms doc</a></li>
- </ul>
- <form method="POST" action="#no_matter_just_stub_url">
- <div class="error-message">Sample error message</div>
- <div data-role="fieldcontain">
- <label for="fld1" class="itemLabel">Field1</label>
- <input type="text" id="fld1" name="fld1" class="itemValue" />
- </div>
- <div data-role="fieldcontain">
- <label for="fld2">Password</label>
- <input type="text" id="fld2" name="fld2" class="itemValue" />
- </div>
- <input type="submit" value="Save"/>
- </form>
- </div>
- </div>
2) I added <meta http-equiv="X-UA-Compatible" content="IE=9" > and looks like internal app pages rendered ok now! But external pages still have styling issues. Isn't it a good idea to put this meta tag in your documentation?
3) Yes, exactly, it is WP 7.0. Neither 7.1 nor 7.5.
Sincerely,
Dmitry Prokhorov