Hello everyone!

I'm trying to test the functionality of crypto.signtext using NMIT 4.0. The code is like this:

<?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="card1" title="Signing Example">
<p>
<!-- Collect data to be signed -->
Enter data to be signed: <input name="toBeSigned"/>
</p>

<!-- Here we send the data to be signed to a script -->
<do type="accept" label="Sign">
<go href="news.wmls#getSignText('$(toBeSigned)')"/>
</do>

</card>

<!-- This card displays the signed data -->
<card id="card2" title="The SignText is....">
<p>
Result: $(RESULT)
</p>
</card>
</wml>


#######################

extern function getSignText (stringToSign) {
var signature = Crypto.signText(stringToSign, 5, 0, "");
var returnString = String.toString(signature);
WMLBrowser.setVar("RESULT", returnString);
WMLBrowser.go("sign.wml#card2");
}

##################



After typing the string to sign in the NMB4.0, the only result I got is the original string, not a signed one.

What can I do to get this example running?

Thanks a lot!!