|
Newsletters
|
|
|
|
|
| Wireless Developer Network Mailing List |
| |
| Mailing List Archives |
| Subject: | RE: MobileLBSList: WMLScript |
| Date: |
08/22/2000 10:45:38 AM |
| From: |
RKumar@opuswave.com |
|
Hi Pranav
Since u r accepting input into a text box ( generally) say input name = login and type is text. Then validate the name . similarly for password. this way u will be sure that u r taking input into a txt box.
Ranjit
-----Original Message----- From: Pranav Bansal [mailto:pranav@informica.com] Sent: Tuesday, August 22, 2000 5:40 AM To: mobilelbslist@wirelessdevnet.com Subject: MobileLBSList: WMLScript
Hi all, I am facing this problem for past days as I started working with WML. I am not able to integrate WML code with WMLScript. I am using the Nokia WAP Toolkit. Also I have the WINWAP Browser. I am giving a small code with this mail.
The WML FILE:(welcome.wml) ---------
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <template> <do type="prev"> <prev/> </do> </template> <card id="welcome" title="pp.Com"> <p> <do type="accept" label="Login"> <go href="#login"/> </do> Welcome to the On-Line Computer Reservation System<br/> For the Budget Hotels. </p> </card> <card id="login" title="Login"> <p> <do type="accept" label="SignIn"> <go href="check.wmls#checkidpass($(userid),$(password))"/> </do> <br/><br/>Enter Userid :- <input name="userid" title="UserId"/><br/><br/><br/><br/> Enter Password :- <input type="password" name="password" title="PassWord"/> </p> </card> <card id="error"> <p> Error: $(err)<br/> </p> </card> </wml>
The WMLScript FILE:(check.wmls) ---------
extern function checkidpass( id, pass) { if(String.isEmpty(id)) { WMLBrowser.setVar("err", "Login id is Empty"): WMLBrowser.go("welcome.wml#error"): } else if(String.isEmpty(pass)) { WMLBrowser.setVar("err", "PassWord is Empty"): WMLBrowser.go("welcome.wml#error"): } }
Now actually I want to check that whether User Enter the Values in the Text box or not. And accordingly I have to display the Message. Please Give me your Suggestions or please explain me that how it is possible?. With Regards, Pranav Kumar Software Engineer Informica India Pvt. ltd. Noida,India Phone: -91-118-4514702 www.informica.com
Pranav Kumar Software Engineer Informica India Pvt. ltd. Noida,India Phone: -91-118-4514702 www.informica.com
To unsubscribe, write to mobilelbslist-unsubscribe@geocomm.com ________________________________________________________________________ The MobileLBSList is brought to you by The GeoCommunity and The WirelessDeveloperNetwork http://www.geocomm.com http://www.wirelessdevnet.com
To unsubscribe, write to mobilelbslist-unsubscribe@geocomm.com ________________________________________________________________________ The MobileLBSList is brought to you by The GeoCommunity and The WirelessDeveloperNetwork http://www.geocomm.com http://www.wirelessdevnet.com
|
|
|