14 Replies Latest reply on Oct 27, 2016 7:44 AM by fmpdude

    Egg Timer with Filemaker and Java

    GuenterBorg

      i am not confirmed with java :-(

      Is it possible to start a Script "FMP://$/" when Message is "Expired"

       

      thank you very much

       

      Günter

       

       

      SetzeVar ( [

      endTime = Table::StartTime + Table::gInterval ;

      countFrom = Max ( 0 ; endTime - Hole (SystemUhrzeit) ) ;

       

       

      html = "<html>¶<head>¶<script type='text/javascript' language='javascript'>¶function count_down(from_number) {¶i = from_number; ¶m = Math.floor(i/60);¶s = i%60;¶if (m < 10) { m = '0' + m };¶if (s < 10) { s = '0' + s };¶if (i > 0) { ¶document.getElementById('min').innerHTML = m;¶document.getElementById('sec').innerHTML = s;¶i--¶setTimeout('count_down(i)', 1000);¶}¶else {¶message = \"<span style ='color:red'>Expired</span>\";¶document.getElementById('timer').innerHTML = message;¶}¶}¶</script>¶</head>¶<body onload='count_down($number)'> ¶<div id='timer'><span id='min'></span>:<span id='sec'></span></div>¶</body>¶</html>"

       

       

      ] ;

      "data:text/html;charset=utf-8,"

      &

      Austauschen ( html ; "$number" ; LiesAlsZahl ( countFrom ) )

      )