×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    1

    WML + WML SCRIPT

    Dear all,

    has anybody experience with wml script??

    I got following problems:
    I created a WML-deck. In one of the cards I call a wml script for furhter actions.
    This works properly with various WAP emulators but not on a real internet server.

    The WML-deck works fine on the internet server but if the wml script is called errors
    occur. The errors are like "can't execute this file". If the wml script is not available
    I get the error message "file not found".

    I assume in the server configuration is something missing. Has anybody an idea about this?

    Thanks
    Wolfgang

    Example of the WML-deck

    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <wml>
    <card id="eins" title="input">
    <p>
    Name : <input type="text" name="nachname" size="15"/>
    <anchor>umdrehen
    <go href="reverse.wmls#reverse()"/>
    </anchor>
    <br/>
    <anchor>loeschen
    <refresh>
    <setvar name="name" value=""/>
    </refresh>
    </anchor>
    </p>
    </card>

    <card id="zwei" title="output">
    <p>
    Umgedreht: $(umkehr)
    </p>
    </card>

    </wml>

    Thats the wml-Skript:

    extern function reverse()
    {
    var wert = WMLBrowser.getVar("nachname"
    var neu = " ", laenge=0, i;
    laenge=String.length(wert);
    laenge=laenge - 1;
    for (i=laenge; i>=0; i--)
    {
    neu = neu + String.charAt(wert,i);
    }
    var x = WMLBrowser.setVar("umkehr",neu);
    WMLBrowser.go("reverse.wml#zwei"
    }

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    196

    RE: WML + WML SCRIPT

    Hi,

    the code itself is correct, so you have something wrong on your server side.
    Have you checked your server mime-types?
    wmls = text/vnd.wap.wmlscript


    Pete / Forum Nokia Developer support

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×