I have downloaded WMLProof is a simulator and WMLEditor
I have wriiten WML application and called a function from the wml file
I wrote the function in WMLScript
When I run the Application using WMLProof Its giving error
The following is code wriiten in
*************** *************** *************** *************** *************** *************** *******
callingFn1.wml
*************** *************** *************** *************** *************** *************** *******
<?xml version="1.0" standalone="yes "?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.or g/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Calculat e the cube" newcontext="tru e">
<do type="accept" label="Cube Value">
<go href="functions .wmls#cube(resu lt,$(number))"> </go>
</do>
<p>
Enter the number:<br/>
<input type="text" name="number" title="Number:"/>
<br/>
cube result:<u>$(res ult)</u>
</p>
</card>
</wml>
*************** *************** *************** *************** *************** *************** **
This is the code written in "functions.wmls "
*************** *************** *************** *************** *************** *************** **
extern function cube(varName,nu mber)
{
var result;
result = Float.pow(numbe r,3);
WMLBrowser.setV ar("varName",re sult);
WMLBrowser.refr esh();
}
When i run callinFn1>wml file using wmlsimulator its giving the following error
no card with id 'cube(result,2) ' in the document
How to fix this problem its very urgent...
can any one help me in this
Thank u in advance
Archu