Windows phone 8.1 javascript+html local toast notification -


i display local toast notification on wp8.1 app build javascript , html. found how c# , xaml can't find anywhere how js , html. can display hello world, later on figure out myself.

ok figured out.

here message displays toast. , in manifest have enable toast notifications.

function toast(message) { document.getelementbyid("klik").innerhtml = "bla"; var toasttextelements = toastxml.getelementsbytagname("text"); toasttextelements[0].appendchild(toastxml.createtextnode(message)); var toastnode = toastxml.selectsinglenode("/toast"); toastnode.setattribute("duration", "long"); var audio = toastxml.createelement("audio"); toastnode.appendchild(audio); var toast = new notifications.toastnotification(toastxml); var toastnotifier = notifications.toastnotificationmanager.createtoastnotifier(); toastnotifier.show(toast); 

}


Comments

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -