you probably know that some phones use HDML and some WML.. here is a SIMPLE
script I thought people might want to evaluate which protocol is supported by
This script as is, could be used for a simple page sent to the user. The basic
eval logic could be expanded anyway you want...even a common gateway for many
browser types (handheld,Palm,HTML,etc)
**Notes**.. it only works with HDML or WML phones, anything else as is would
not do anything or return an error.
I do have more complex code that provides the basics to spew pages to the user
in correct format. It allows someone without HDML or WML knowlege to have
pages created by calling a function. exp:
mhtml("This is the info","BOLD;CR")
If I got enough requests for it, I could be perswaded to whip it into a
complete package with some help docs and post it here.
Hope you find this useful. At a minimum, it starts you on the path to wireless
Once you paste this code into an agent, just have your webphone (or emulator)
call the agent normally.
Dim doc As notesdocument
Dim sess As New notessession
Dim ptype As String
Set doc = sess.documentcontext
ptype = doc.HTTP_ACCEPT(0)
If (Instr(ptype,"text/vnd.wap.wml")) Then
Elseif (Instr(ptype,"text/x-hdml")) Then
Print "<?xml version=""1.0""?>"
Print "<!DOCTYPE wml PUBLIC ""-//WAPFORUM//DTD WML 1.1//EN""
Print "<card id='home'> "
Print "<p><strong>This is the WML page</strong></p>"
Print "<HDML VERSION=3.0>"
Print "This is the HDML page"