Show status through notification box (ie. Loading data…)

So now i’m more into fancy stuff! :) you know what? being on web we know about how nicely gmail pops up their “Loading mail” or “Sending..” status over the browser view port. so now i’m just trying to be on mobile, i was looking for the similar kinda stuff, then built it (since it is damn simple i believe if you are lame enough you gonna read my post out) -

To make my words more understandable check out the screen shot -

See the black backed notification box

See the black backed notification box

This is the code i’ve written to appear this black semi transparent box with message -

01 showMessage: function(base, message, interval) {
02 var label = Ti.UI.createLabel({
03 text: message,
04 backgroundColor: '#000',
05 color: '#fff',
06 height: 40,
07 borderRadius: 10,
08 opacity: 0.7,
09 shadowColor: '#ccc',
10 textAlign: 'center',
11 top: 100,
12 width: '90%',
13 left: 10
14 });

base.getWindow().add(label);
interval = interval ? interval : 5000;

setTimeout(function() {
base.getWindow().remove(label);
}, interval);
}

Add New Comment

Captcha text

Comments - 44

  • buy ambien Feb 07, 2012
    buy ambien... Show status through notification box (ie. Loading data…) - Tasawr Interactive...
  • Dec 04, 2011
    4zCtTR , [url=http://namanjjrrwem.com/]namanjjrrwem[/url], [link=http://uwwymxhwanmt.com/]uwwymxhwanmt[/link], http://hqimhyxytnuy.com/
  • Dec 04, 2011
    OC9U88 , [url=http://avthcephehqc.com/]avthcephehqc[/url], [link=http://ahajpnusiazc.com/]ahajpnusiazc[/link], http://bnnneoiefaax.com/
  • Dec 04, 2011
    38obQD , [url=http://rpvzvtnuovdp.com/]rpvzvtnuovdp[/url], [link=http://fdvrqspopuax.com/]fdvrqspopuax[/link], http://daolcpatommd.com/
  • Nov 30, 2011
    qN015o jplxjgeeurcb