[TYPO3-german] Atomzeit

Björn Hahnefeld bjoern.hahnefeld at googlemail.com
Tue May 23 21:03:34 CEST 2017


Ich habe es mit mouseover und mouseout gelöst. Aber leider lässt sich damit
nicht die Load-Funktion abschalten. Hast du da genau für meinen
Lösungsansatz eine Idee?

$(document).ready(function() {
$("#contact-overview").mouseover(function() {
$("#contact-time").load("/fileadmin/templates/phpscripts/time.php");
var refreshId = setInterval(function() {
$("#contact-time").load('/fileadmin/templates/phpscripts/time.php?' + 1*new
Date());
}, 500);
});
$("#contact-overview").mouseout(function() {
$("#contact-time").write("Die aktuelle Uhrzeit und das aktuelle Datum
werden sofort angezeigt.");
});
});

2017-05-23 17:53 GMT+02:00 Christian Hackl <hackl.chris at googlemail.com>:

> Ajax? Bei jQuery in etwa grob z. B. so:
>
> var meinFlyout = $("div");
> meinFlyout.on("click touchend", function() {
> if(meinFlyout.hasClass("active")) {
> $.post('api/index.php', tmpData, function(returnedData) {
>
>
>
>
> das andere also Tab aktiv oder nicht:
> https://stackoverflow.com/questions/1760250/how-to-tell-if-
> browser-tab-is-active/8895102
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>


More information about the TYPO3-german mailing list