[Web+ MathWizard | Example Applications ]

Overview

This is a simple program that demonstrates Web+'s dynamic formula interpretation and execution. It allows users to write a one-line math formula and calculate it online. This example demonstrates the use of the webEval statement


Implementation File

File Name Type Function
MATH.WML Template
MATHA.WML Template

MATH.WML

<webNoOutput>
<!---
| Description: Examples to illustrate how webmath works.
|
| CVS History:
| $Log: math.wml,v $
| Revision 1.2 2006/04/03 18:05:57 vidyar
| daily commit
|
| Revision 1.1 2006/03/29 02:24:34 vidyar
| adding files
|
|
|
|
--->
<webCall script=#application.FUNCPATH & "/geturl.wml"# destScript="math.wml" url=#nextURL# byref sessionID=#sessionID#>
<!--- generate text strings --->
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="mathformula" result=#mathformula# byref lang=#client.lang# langFile=#langFile#>
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="anyoperator" result=#anyoperator# byref lang=#client.lang# langFile=#langFile#>

</webNoOutput>

<webInclude script=#application.SCRIPTPATH & "/template.wml"#>


MATHA.WML

<webNoOutput>
<!---
| Description: Examples to illustrate how webBubble works.
|
| CVS History:
| $Log: matha.wml,v $
| Revision 1.1 2006/03/29 02:24:34 vidyar
| adding files
|
| Revision 1.2 2006/03/10 09:00:44 vidyar
| daily commit
|
|
|
--->
<webCall script=#application.FUNCPATH & "/geturl.wml"# destScript="matha.wml" url=#nextURL# byref sessionID=#sessionID#>
</webNoOutput>

<webInclude script=#application.SCRIPTPATH & "/template.wml"#>

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com