#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    2
    Rep Power
    0

    Problems with WML page on Siemens M55


    I am having trouble with this page on my siemens m55. :
    PHP Code:
    <?xml version="1.0"  encoding='ISO-8859-1' ?> 
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 
    <wml> 
            <!-- DGS HOVEDSIDE --> 
            <card ontimer="#main"> 
                    <timer value="25"/> 
                    <do type ="accept" label="Tilbage"> 
                            <prev/> 
                    </do> 
                    <p> 
                            <img src="/wap/img/DGSlogo.wbmp" align="top" alt="De Gule Sider&#xAE;"/> 
                    </p> 
            </card> 

            <card id="main" title="De Gule Sider&#xAE;"> 
                    <do type ="help" label="Om De Gule Sider&#xAE;"> 
                            <go href="/wap/help/dgshelp.wml"/> 
                    </do> 
                    <do type ="go" label="Flere felter..."> 
                            <go href="#ext"/> 
                    </do> 
                    <do type ="accept" label="Tilbage"> 
                            <prev/> 
                    </do> 
                    <do type="accept" label="Søg"> 
                        <go href="/wap/mixeddetail"> 
                               <postfield name="tn" value="$(tn)"/> 
                        </go> 
                    </do> 
                    <do type="accept" label="Søg kun Fagbog"> 
                        <go href="/wap/yellowdetail"> 
                               <postfield name="tn" value="$(tn)"/> 
                        </go> 
                    </do> 
                    <do type="accept" label="Søg kun Navnebog"> 
                        <go href="/wap/whitedetail"> 
                               <postfield name="tn" value="$(tn)"/> 
                        </go> 
                    </do> 
                    <p>     Nummer-til-navn:<br/> 
                            <input name="tn" title="Angiv nummer:" format="*N" emptyok="true" value=""/> <br/> 
                       <anchor title="Søg">Søg 
                            <go href="/wap/mixeddetail"> 
                                <postfield name="tn" value="$(tn)"/> 
                            </go> 
                       </anchor> 
                        <br/> 
                        <a href="#ext">Flere felter...</a> 
                        <br/> 
                    </p> 
                    <p align="center">- - - - - - - - - - - -</p> 
                    <p> 
                            <anchor title="Tilbage">Tilbage<br/> 
                                    <prev/> 
                            </anchor> 
                    </p> 
            </card> 

            <card id="ext" title="Udvidet søgning"> 
                                    <onevent type="onenterforward"> 
                                            <refresh> 
                                                    <setvar name="nm" value=""/> 
                                                    <setvar name="gn" value=""/> 
                                                    <setvar name="hn" value=""/> 
                                                    <setvar name="bn" value=""/> 
                                                    <setvar name="pn" value=""/> 
                                                    <setvar name="tn" value=""/> 
                                            </refresh> 
                                    </onevent> 
                    <do type="accept" label="Søg Fagbog"> 
                            <go href="/wap/yellowresult"> 
                                    <postfield name="nm" value="$(nm)"/> 
                                    <postfield name="gn" value="$(gn)"/> 
                                    <postfield name="hn" value="$(hn)"/> 
                                    <postfield name="bn" value="$(bn)"/> 
                                    <postfield name="pn" value="$(pn)"/> 
                                    <postfield name="tn" value="$(tn)"/> 
                                    <postfield name="pa" value="1"/> 
                            </go> 
                    </do> 
                    <do type="accept" label="Søg Navnebog"> 
                            <go href="/wap/whiteresult"> 
                                    <postfield name="nm" value="$(nm)"/> 
                                    <postfield name="gn" value="$(gn)"/> 
                                    <postfield name="hn" value="$(hn)"/> 
                                    <postfield name="bn" value="$(bn)"/> 
                                    <postfield name="pn" value="$(pn)"/> 
                                    <postfield name="tn" value="$(tn)"/> 
                                    <postfield name="pa" value="1"/> 
                            </go> 
                    </do> 
                    <p> 
                                            Søgeord/Firma/Navn:<input name="nm" title="Angiv navn:" emptyok="true" value=""/> 
                                            Gade:<input name="gn" title="Angiv gade:" emptyok="true" value=""/> 
                        Husnr.:<input name="hn" title="Angiv husnr.:" emptyok="true" value=""/> 
                        Postnr.:<input name="pn" title="Angiv postnr.:" format="*N" emptyok="true" value=""/> 
                        By:<input name="bn" title="Angiv by:" emptyok="true" value=""/> 
                        Telefon/Fax/Mobil:<input name="tn" title="Angiv tlf./fax:" format="*N" emptyok="true" value=""/> 
                        <anchor title="Søg Fagbog">Søg Fagbog 
                            <go href="/wap/yellowresult"> 
                                <postfield name="nm" value="$(nm)"/> 
                                <postfield name="gn" value="$(gn)"/> 
                                <postfield name="hn" value="$(hn)"/> 
                                <postfield name="bn" value="$(bn)"/> 
                                <postfield name="pn" value="$(pn)"/> 
                                <postfield name="tn" value="$(tn)"/> 
                                <postfield name="pa" value="1"/> 
                            </go> 
                        </anchor> 
                        <br/> 
                        <anchor title="Søg Navnebog">Søg Navnebog 
                            <go href="/wap/whiteresult"> 
                                <postfield name="nm" value="$(nm)"/> 
                                <postfield name="gn" value="$(gn)"/> 
                                <postfield name="hn" value="$(hn)"/> 
                                <postfield name="bn" value="$(bn)"/> 
                                <postfield name="pn" value="$(pn)"/> 
                                <postfield name="tn" value="$(tn)"/> 
                                <postfield name="pa" value="1"/> 
                            </go> 
                        </anchor> 
                            </p> 
                                    <p align="center">- - - - - - - - - - - -</p> 
                                    <p> 
                                            <anchor title="Tilbage">Tilbage<br/> 
                                                    <prev/> 
                                            </anchor> 
                                    </p> 
                                    <do type="help" label="Søgetips"> 
                                            <go href="/wap/help/dhshelp1.wml#main"/> 
                                    </do> 
                                    <do type ="options" label="Til De Gule Sider&#xAE;"> 
                                            <go href="/wap/index.wml"/> 
                                    </do> 
                                    <do type ="accept" label="Tilbage"> 
                                            <prev/> 
                                    </do> 
            </card> 
    </wml>

    If I remove the do type sections the page works fine.
    If not the siemens says that there is a problem with the page.

    Is the code correct or is there a bug in siemens wap browser?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    2
    Rep Power
    0
    I think the problem is multiple
    do type ="accept"
    statements on the same page.

    Is this allowed according to WML standarts?

IMN logo majestic logo threadwatch logo seochat tools logo