message displayed based on the results of an xui.Ui.Input

Develop and Deploy Cross-Browser Web Apps .

message displayed based on the results of an xui.Ui.Input

Postby cgetty » Sat Jun 06, 2015 5:22 pm

Hi All
I would like to display a message based on the results of an input value.

Something like this (of course below example not working)

_ctl_sbutton3_onclick:function (profile, e, src){ var ns = this, uictrl = profile.boxing();
if (ns.ctl_input2.value == '1111'){
xui.message('Yes Its a match'),
}
else{
xui.message('Nope try again');
}

Sorry for such a basic question, some days are better then others & and this aint one of them :|

Thaks
Clark
cgetty
 
Posts: 9
Joined: Mon May 19, 2014 5:54 am
Location: Texas

Re: message displayed based on the results of an xui.Ui.Inpu

Postby kevinotton » Tue Jun 09, 2015 9:58 am

if(ns.ctl_input2.getUIValue() === '1111'){
xui.message("match");
}
else{
xui.message('nope');
}
kevinotton
 
Posts: 39
Joined: Thu May 15, 2014 8:18 am
Location: Needham Market, Suffolk, UK

Re: message displayed based on the results of an xui.Ui.Inpu

Postby cgetty » Tue Jun 09, 2015 12:50 pm

Thank you kevinotton for your help, and taking the time to respond.

Thats all I needed, I'm a happy camper now :D

Clark
cgetty
 
Posts: 9
Joined: Mon May 19, 2014 5:54 am
Location: Texas


Return to CrossUI for Web Apps

Who is online

Users browsing this forum: No registered users and 0 guests

cron