JavaScript and CSS changes in IE Mobile for Windows Phone 7

For IE Mobile in Windows Phone 7, we’ve made a couple of JavaScript and CSS enhancements that you can try out today in the Windows Phone 7 Emulator. The new scripting functions are: getElementsByClassName(name): given the class specified by name, returns all of the elements or sub-elements within the scope of this function call querySelector(selector):…

19

The IE Mobile Viewport on Windows Phone 7

One of the main challenges involved with mobile Web development is getting content to lay out correctly on screens of varying sizes. Over the years, browser vendors have invented a variety of ways to allow developers to control how browsers lay out content, usually using a custom <meta> tag. First among these was the HandheldFriendly…

19

Targeting mobile-optimized CSS at Windows Phone 7

There have been several posts on how to style sites for mobile devices.  These approaches all use CSS3 Media Queries.  As many of the articles point out, not all mobile browsers support this feature.  The Windows Phone 7  browser’s base functionality is built on Internet Explorer, which does not support CSS3 Media Queries until Internet…

18

Supported Fonts on IE for Windows Phone 7

Internet Explorer on Windows Phone 7 supports a variety of font faces (13) that you can use in your Web pages, ranging from the usual suspects like Arial to fonts like Segoe WP, which Windows Phone uses itself for various User Interface text. The full set of default fonts available are listed in the following…

15

Update: CSS and js support in ie Mobile for Windows phone 7

Yesterday, we posted a blog entry that detailed some upcoming JavaScript and CSS support enhancements that we are planning on making to the IE Mobile browser for Windows Phone 7. One of these changes, support for -webkit-text-size-adjust, stirred up a bit of controversy that caused us to stop and think further on the issue. Our…

14

Ladies and Gentlemen, Please Welcome… the IE Mobile User Agent String!

Yesterday, the IE team introduced their User Agent string for IE9. We felt that it was only right that we do the same thing. Thus, without further ado, introducing the Windows Phone Internet Explorer UA String: Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; <DeviceManufacturer>;<DeviceModel>) This will be the standard format of our…

11

IE9 Coming to Windows Phone in 2011

By now, you’ve probably heard today’s announcement at this year’s Mobile World Congress that we are bringing IE9 to Windows Phone later this year. If not, you can read and learn more about the announcement here and here. Having the same core browsing engine on both Windows Phone and Windows Desktop is a dramatic step…

8

Managing the browser viewport in Windows Phone 7

As web browsing on mobile devices continues to grow, having sites that are designed to be used on phone and that match the look and feel of other applications on the device becomes more important every day.  In this post I would like to expand on what Joe wrote a few months ago about the…

8

Dude! We’re Getting The Blog Back Together!

Hello everyone! I’d like to start off by introducing myself – I’m Joe Marini, and I’m a Principal PM here on the Windows Phone team. Among the things I’m responsible for is driving our mobile Web developer strategy and engagement, and that includes reaching out to all of you. I’m going to kick that off…

6

Run the Windows Phone Emulator as Standalone

UPDATE 11/2/2010: You don’t need to do this anymore, as the Windows Phone Developer Tools now install a link in the Start menu that launches the Emulator directly. If you are developing a mobile Web app and want to test it out in the Windows Phone emulator running IE Mobile, you don’t need to launch…

6