•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,418 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,635 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 1460 | Replies: 4
![]() |
•
•
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation:
Rep Power: 8
Solved Threads: 51
•
•
Join Date: Apr 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Well, we won't simply hand it to you. What have you tried? What code are you currently working with?
very new here that's why no idea how to start... by the way may i know u know WML?
I wish to write a script that replays every other letter of that word with asterisk and reverse the order of the work. below r my code.
and it not working...
<wml>
<card id="card1"title="INPUT">
<onevent type="onenterforward">
<go href="reverse.wmls#reverse()"/>
<refresh>
<setvar word="words" value=""/>
</refresh>
</p>
</card>
<card id="card2" title="OUTPUT">
<p>
input the word
result1</p>
<p>
The result are $result2 and $result3
</p>
</card>
</wml>
extern function reverse(){
var a;
var b;
var word=Dialogs.prompt("Input the word:","");
var word2="";
var word3="";
var word4=String.charAt(word,0);
for(var i=String.length(word)-1;i>=0;i++){
a=String.charAt(word,i);
word2=word2+a;
}
for(var i2=1;i2<=String.length(word)-1;i2--){
b="*";
word3=word3+b;
}
WMLBrowser.setVar( "result1",word);
WMLBrowser.setVar( "result2",word4+word3);
WMLBrowser.setVar( "result3",word2);
WMLBrowser.go( "#card2" );
}
•
•
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation:
Rep Power: 8
Solved Threads: 51
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Sending email from a shell script (Shell Scripting)
- Problem with variables in Windows shell script (Windows NT / 2000 / XP / 2003)
- Using find in a bash shell script (Shell Scripting)
- Shell Script for Gnome 2.6 Print Manager. (Shell Scripting)
- How to su properly in a shell script (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: Shell script Help
- Next Thread: Arrays



Linear Mode