Using RT from the Compaq iPAQ

Hi there,

I was wondering if anyone has ever tweaked the way RT displays pages
for the iPAQ’s web browser?

Also, what is the easiest way to make one RT setup have different HTML
pages for different devices? I’d like to have RT display the stock
HTML pages to non-handheld devices, and display the customized HTML to
the iPAQs.

Will I have to have two /rt2 directories that both access the same
database? I’m not really sure what the best way to approach this is
in RT…

Any clues would be most appreciated. Thanks!

-Chris

Chris Tracy chris@telerama.com
Telerama Public Access Internet
Senior Network Engineer
http://www.telerama.com

I was wondering if anyone has ever tweaked the way RT displays pages
for the iPAQ’s web browser?

Is it a WAP device, or does it try to do HTML? If it needs WML,
then there is a lot of work to be done.

Also, what is the easiest way to make one RT setup have different HTML
pages for different devices? I’d like to have RT display the stock
HTML pages to non-handheld devices, and display the customized HTML to
the iPAQs.

I do things like that with mod_rewrite rules in apache. Something
like this may help

RewriteEngine   on
# Catch most WAP browsers
RewriteCond %{HTTP_ACCEPT} text/vnd\.wap\.wml [OR]
# WinWAP, WAPjag
RewriteCond %{HTTP_USER_AGENT} wap [OR]
# Nokia emulators (sdk)
RewriteCond %{HTTP_USER_AGENT} 7110
# Rewrite!!
RewriteRule  ^[\./](.*)$           /wml/index.wml        [L]

You could also switch on the user agent, if your browsers are HTML
but with constrained screens.

Will I have to have two /rt2 directories that both access the same
database?

With the above example, yes. There would be a ‘wml’ directory with WML
versions of all the scripts located inside INSTALLDIR/WebRT/html A better
solution would have ‘html’ and ‘wml’ as siblings.

My favorite solution (from an elegance point of view) is to rewrite all
the pages to produce XML rather than HTML, and provide XSL style sheets
for each to convert from the XML to the HTML page. You would specify
different style sheets depending on the browser. The down side
is that you often have to do the XSL translation on the server side
rather than letting the client do it. This eats CPU.

I was wondering if anyone has ever tweaked the way RT displays pages
for the iPAQ’s web browser?

Is it a WAP device, or does it try to do HTML? If it needs WML,
then there is a lot of work to be done.

The “lot of work” is:

:slight_smile:

That said, I use WebRT from my Blackberry, and it works great, so I
suspect the iPaq browser will work fine too.

-Rich

Rich Lafferty --------------±----------------------------------------------
Ottawa, Ontario, Canada | Save the Pacific Northwest Tree Octopus!
http://www.lafferty.ca/ | http://zapatopi.net/treeoctopus.html
rich@lafferty.ca -----------±----------------------------------------------

The “lot of work” is:

:slight_smile:

I stand corrected, maybe it’s not that much work (except
for the guys to put it together :slight_smile: )