Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2001

Mobilize Your Web Site the Easy Way

RSS
Subscribe to Windows Web Solutions | See More Internet Server API (ISAPI) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here

Taking Echo Out for a Test Drive
Before you get too excited about the power Echo gives you, you and your developers need to be aware of a roadblock. Chances are that some of the pages in your site contain a large amount of data. For example, you wouldn't want to send the entire contents of the MSN home page to a cellular telephone. Echo would render the pages, but even if the buffer on the cellular telephone could handle it, users wouldn't want to scroll through 100 three-line pages to get to the information they need. In addition, when you think about the design of your wireless applications, you most likely will eliminate the navigations on your site. (Top and left navigations are the most common, but many sites today use bottom and right navigations, too.) Navigations give too much data for a cellular telephone to use.

Now, here's a scenario to show you Echo in action. I installed the Retail Solution Site, a fully functional, ready-for-the-Internet, business-to-consumer (B2C) e-commerce site that ships with Microsoft Commerce Server 2000. I applied a look and feel to the site and installed it as a demonstration application at http://solutions.interknowlogy.net/retail. The site's functionality is typical of a retail e-commerce site on the Internet. The site displays products, and you can add products to your basket and make purchases. Figure 2 shows the site's home page from Microsoft Internet Explorer (IE) 5.5.

Notice the top and left navigations on the site (e.g., Home, Sign-in). In addition, Commerce Server catalogs appear as links on the home page. This home page shows too much data for a PDA or cellular telephone to display adequately. So, you and your developers must analyze design carefully.

One strategy is to retain one code base for the site and intelligently sniff (i.e., programmatically determine the capabilities of the browser connected to your site) the capabilities of the browser that has connected to the site. Within your .asp file, you would trim back the capabilities (and output) of the site with some type of If...Then...Else logic that handles rendering to browsers, such as those of wireless Internet devices. The drawbacks to this strategy are that

  • it adds a layer of complexity within each page
  • you need to determine the browser capabilities on each page of the site

Another design strategy, and the most popular for Echo sites, is called forking the code base. In this design strategy, you create a separate code base specifically tailored to the limited rendering capabilities of wireless Internet devices. This strategy is much cleaner and easier for the developers. The drawback is that you have two code bases to maintain. When you fork the code base, you intelligently sniff the capabilities of the browser that has connected to the site. If you need to downlevel the information to a browser, you send the user to the forked code base. I chose this strategy.

First, I determine the capabilities of the browser and send (i.e., redirect) mobile users to the forked code base. You probably also want to use DNS on your wireless site. If I determine that the user has a downleveled browser, I send the user down a different code base that doesn't have the top and left navigations. This code base simply carries the basket functionality (in which the user chooses a product), a place for the user to enter ship-to and bill-to information, a place for credit card details, and a place for purchases. This downleveled code base is simply a copy of the main code base without all the extraneous information.

Notice the limited UI that Figure 3 shows. This is the Retail site as viewed from a PDA running Windows CE. Windows CE 3.0 has Pocket IE with graphics capabilities. A version of Macromedia Flash is also available for Windows CE. Figure 4 shows the site as viewed from a cellular telephone emulator. (For speed, you need an emulator when you're testing your wireless applications.) These figures illustrate the most interesting and exciting thing about Echo: You can use it on one Web site without special coding that handles the different capabilities of the UIs. Echo determines the capabilities, converts the HTML on the way out, and sends the correct version of HTML to the device.

Echo also comes with a handful of simple HTML tags that give your developers even more power through more granular control within their wireless applications. Consider the code that Figure 5 shows from the home page of the http://solutions.interknowlogy.net/retail site. Listing 1 is the source for Figure 5. (You can download the code in Listing 1 from the Code Library on the IIS Administrator Web site at http://www.iisadministrator.com.) Notice the <echo-choose> tag. This tag acts as a case statement (i.e., a statement that lets programmers branch execution depending on the condition passed to it) based on the type of wireless device that Echo identifies. The purpose of this bit of code is to determine how and what to display on the home page. Several <echo-when markup=" "> parameters are also available (e.g., "html," "wml," "palm," "pocket"). In this case, the HTML version displays a Macromedia Flash 5.0 file. The otherwise condition handles a Macromedia Flash 4.x file for the Pocket PC. The "wml" case handles cellular telephones and displays a .bmp image file instead of a flash image. Of particular note is the lowsrc="iklogo.bmp" attribute. Echo automatically handles downleveling an image to the Wireless Bitmap (WBMP) format that a cellular telephone can handle.

Next Month
I've shown you how to install, configure, and implement Echo, a powerful product from Wireless Knowledge. Echo is an outbound ISAPI filter that seamlessly integrates with the Internet Information Services snap-in. Echo makes wireless device compatibility a nonissue. Echo renders the data on the fly for any Internet-ready mobile device—cellular telephones, PDAs, Pocket PCs, and many more devices. Mobilizing your corporate applications with Echo requires no specialized hardware, software, or skills. Echo doesn't require well-formed HTML, but it renders best when the HTML is well formed. (Echo can misinterpret ambiguities—e.g., missing tags, unterminated tags—which can lead to unexpected results.) For more information about Echo, visit http://www.wirelessknowledge.com/products/echo/echo.asp.

Next month, I'll give you a glimpse of the future. I'll take an in-depth look at IIS 6.0, which will ship as part of Windows .NET Server (formerly code-named Whistler). In particular, I'll give you a tour of the IIS 6.0 metabase, which is now in XML, and show you some of the metabase's administrative features.

Note: Echo starts and stops services during installation, so prepare your production servers before you install Echo.

End of Article

   Previous  1  [2]  Next  


Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...


Mobile and Wireless Whitepapers GOING MOBILE: Developing an Effective Corporate Mobile Policy

GOING MOBILE: Developing an Application Mobilization Plan for your Business

The IT Guidebook To Evaluating Hosted Exchange Providers

Related Events Delivering Reliable and Effective Web-Based Applications

Making Web Application Perform Better: What to Watch, How to Watch It, and How to Fix It

Check out our list of Free Email Newsletters!

Mobile and Wireless eBooks A Guide to Windows Certification and Public Keys

Keeping Your Business Safe from Attack: Passwords and Permissions

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing