[Web+ Bubble Sort | Example Applications ]


Overview

This program demonstrates Web+'s flow control capability and array structures.


Implementation File

File Name Type Function
BUBBLE.WML Template

Bubble.wml

<webNoOutput>
<!---
| Description: Examples to illustrate sorting process using Web+.
|
| CVS History:
| $Log: bubble.wml,v $
| Revision 1.2 2006/04/03 18:04:52 vidyar
| daily commit
|
| Revision 1.1 2006/03/29 02:15:37 vidyar
| adding files
|
| Revision 1.3 2006/03/09 10:41:40 vidyar
| daily commit
|
|
|
--->


<webCall script=#application.FUNCPATH & "/geturl.wml"# destScript="bubble.wml" url=#nextURL# byref sessionID="">

<!--- generate text strings --->
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="overview" result=#overview# byref lang=#client.lang# langFile=#langFile#>
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="overviewpara1" result=#overviewpara1# byref lang=#client.lang# langFile=#langFile#>
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="overviewpara2" result=#overviewpara2# byref lang=#client.lang# langFile=#langFile#>
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="overviewpara3" result=#overviewpara3# byref lang=#client.lang# langFile=#langFile#>
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="overviewpara4" result=#overviewpara4# byref lang=#client.lang# langFile=#langFile#>
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="overviewpara5" result=#overviewpara5# byref lang=#client.lang# langFile=#langFile#>
<webCall script=#application.FUNCPATH & "/gettext.wml"# textString="numberofrandomnos" result=#numberofrandomnos# byref lang=#client.lang# langFile=#langFile#>

</webNoOutput>

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

Bubble-p.wml

<!--- Include the page header --->
<webSet #HeaderPageTitle# = "talentsoft Web+ Bubble Sort">
<webSet #HeaderBigTitle# = "Web+<sup>&##174;</sup> Bubble Sort Example">
<webSet #dir# = "/bubble">
<webSet #CGIPath# = "#path##dir#">
<webInclude Script="#path#/header.wml">
<webInclude Script="#path#/gearbox.wml">
<webPrint>

<h3>#overview#</h3>
<table width="580">
<tr><td class="textstyle">
<p>#overviewpara1#</p>

<p>#overviewpara2#</p>

<p>#overviewpara3#</p>

<p>#overviewpara4#</p>

<p>#overviewpara5#</p>
</td></tr>
</table>


<form method="post" action="<webPrint>#CGIPath#</webPrint>/bubble2.wml" id="WebpForm_1" onsubmit="return _Webp_checkForm_1(this)">

<table border="0" cellpadding="15">
<tr> <td><p><b>#numberofrandomnos#</b></p></td>
<td><input type="text" name="Number" value="20" size="3" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Generate Random Numbers" /></td></tr>

</table>

</form>
</webPrint>

 

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