Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Pop-Up Fenster schliessen - Neu Laden des Hintergrundfensters

Empfohlene Antworten

Hallo alle miteinander!

Ich habe folgendes Problem: Ich habe in PHP einen Shop gebaut.

Nun möchte ich in der Warenkorb Übersicht anbieten, dass überflüssige Produkte gelöscht werden können.

Ich möchte dazu einen Knopf anbieten, welcher dann ein neues Fenster (Pop-Up) öffnet in dem der Besucher noch einmal gefragt wird ob er diese Position wirklich löschen möchte.

Wenn er dann mit Ja bestätigt soll ein Script ausgeführt werden, welche dann die hintere Seite (Warenkorbübersicht) neu lädt, so dass der Besucher direkt seinen nun aktualisierten Warenkorb angezeigt bekommt.

Wäre super wenn Ihr da was für mich hättet - ein Scriptbeispiel wäre nett.

So Long...

ein möglichkeit ginge so:


echo "<a onClick=\"return confirm('Wollen Sie Piepapo wirklich löschen?');\" href=\"delete.php?...\">Löschen</a>";
[/php]

Ich würde folgendes bevorzugen:


//Irgendwo im <HEAD> einbauen
<script>
function delconf(url)
{
if(url)
{
if( confirm('löschen?'))
{
document.location.href=url;
}
}
}
</script>

//Link zum löschen an gewünschter Stelle einbauen
<a href="javascript:delconf('http:...')">Löschen</a>
[/PHP]

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.