O'Reilly logo

BlackBerry Hacks by Dave Mabe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #89. Browse WML from Your Desktop

There are a couple options for viewing WML content from a non-handheld device (that is, your computer).

Once you've decided to take the plunge and create a handheld-only version of your site in the Wireless Markup Language (WML) format, you will quickly realize you've taken for granted the comforts of web development on your desktop computer. First of all, you can't view the source of a page on the BlackBerry Browser. View source is a very useful feature of modern desktop browsers that, as of yet, cannot be done on a BlackBerry. Equally as bad is when you are testing a change you made on your site and then refresh the page on your handheld to see the results—it takes ages to retrieve the document across the cellular data network compared to the same routine on your desktop. I won't even go into the convenience that the Web Developer Firefox extension brings to web development junkies.

You could use the BlackBerry Simulator [Hack #93] to view your site, but you still don't have access to viewing the source without coding your own program to do it. When I first dabbled in WML development, I wrote a Perl script that emulated an HTTP request from the BlackBerry Browser to view the source of a WML page—I sure wish I had access to the information in this hack back then!

Use Opera

The Opera web browser has a handler for WML that is turned on by default! This makes Opera a logical choice for developing WML sites. You can download Opera from http://www.opera.com ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required