Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Linking a wap page to a asp/vbscript page using tables to format the output...error

Posted on 2003-03-27
Medium Priority
Last Modified: 2013-12-27
Hi...Im writing a program where I can create a machine profile using wml and vbscript.  When i use tables in the form of wml i get the errors included below.  if i dont use tables and just write response.write ('clientname") doc.getitemvalue("clientname")(0) i get an entry.  but I cant write more then one entry.  Im thinking there is something wrong with the compatability of tables in wml and vbscript.  i would greatly appreciate some tips on how to fix this


<card id="card1" title="machine1">
<do type="accept" label="next">
     <go href="#card2"/>
 <P MODE="nowrap">
<TABLE title="machine1" ALIGN="LL" columns="1">
      <TD> <% Response.Write ("Client Name:") & " " & doc.GetItemValue("ClientName")(0)
     %> </TD>


Here is the errors i get:
WML translation failed.
(12) : error: Invalid element 'P' in content of 'card'. Expected do | p
(12) : error: Couldn't find element declaration for 'P' in content model
(13) : error: Couldn't find element declaration for 'TABLE' in content model
(14) : error: Couldn't find element declaration for 'TR' in content model
(15) : error: Couldn't find element declaration for 'TD' in content model
(20) : error: Close tag 'p' does not match start tag 'P'
Question by:reshmi726
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 27

Accepted Solution

BigRat earned 80 total points
ID: 8224079
IN wml ALL tag names are in LOWERCASE. Unlike HTML WML is an XML language and consequently case matters.


Author Comment

ID: 8239085
Thnaks!!! something so simple thats been driving me crazy for days, its all solved, but now I have this issue where my loop gives me an eror when going through the database more then once.  I feel like the dim isnt reset and dont know how...hers the code:

elseif var3 <> "" and var2 = "machineprofile" then
   Set s = CreateObject("Lotus.NotesSession")
   Call s.Initialize
   set db=s.getdatabase("NYDOMAPPS01", "Support.nsf")
   set view = db.getview ("1. Clients\By Name")
   set doc = view.getFirstDocument
<card id = "print">
   Response.Write newline
   dim clientOriginalName
   dim doc2
   dim view2
   set view2 = db.getview ("5. Machines\By Client ID")
   for i = 1 to view.toplevelentrycount
     if Instr(1, doc.getItemValue("ClientName")(0),  
          var3, 1) > 0 then
clientOriginalName = doc.getitemValue("ClientName")(0)
set doc2 = view2.getentryByKey( doc.getitemValue("ClientID")(0) )
response.Write "<a href=""ProfileByClient.asp?UNID=" & doc2.UniversalID & """>"
response.Write doc2.getitemValue("ClientID")(0)
response.Write Replace( Replace(clientOriginalName, "&", "&amp;")   ,"'","&apos;")
response.Write "</a>"
response.Write newline
End If
set doc = view.GetNextdocument(doc)

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question