Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Blackberry WebWorks UI - why is callback not invoked?
  2. function onDateTimeSelected(datetime){
  3.   localStorage.setItem('countup_date', datetime);
  4. }  
  5.  
  6. function dateTimeAsync(htmlDateTimeInput) {
  7.   try {
  8.     var opts = { "value" : htmlDateTimeInput.value,
  9.                   "min"   : htmlDateTimeInput.min || "",
  10.                   "max"   : htmlDateTimeInput.max || "",
  11.     };
  12.  
  13.  
  14.     blackberry.ui.dialog.dateTimeAsync("date", opts, window.onDateTimeSelected);
  15.   }catch (e) {
  16.     alert("Exception in dateTimeAsync: " + e);
  17.   }
  18. }