Al Butler
Posts: 0
Joined: Wed Nov 27, 2013 7:22 pm

popup message

If any one is familiar with the "toast" API call from Android you will like this pop up message in Javascript.

Comes from github
Also includes a variable to delay the message as well.
I find it much better than the JQM popup

var toast=function(msg){
$(""+msg+"")
.css({ display: "block",
opacity: 0.90,
position: "fixed",
padding: "7px",
"text-align": "center",
width: "270px",
left: ($(window).width() - 284)/2,
top: $(window).height()/2 })
.appendTo( $.mobile.pageContainer ).delay( 2000 )
.fadeOut( 400, function(){
$(this).remove();
});
};

usage: toast("Help");

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

popup message

Hello! It's not entire code pasted, here is correct code https://getsatisfaction.com/apperyio/...

Return to “Issues”