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.

[JS][jQuery] ready()-Function erneut aufrufen

Empfohlene Antworten

Veröffentlicht

Hallo Zusammen,

ich habe eine Frage bezüglich der ready()-Funktion von jQuery:

In einer .js-Datei wurde eine ready()-Funktion von jQuery implementiert. Diese Funktion wird auch wunderbar von der Webseite aufgerufen. Jetzt habe ich aber eine Stelle, an der ein Ajax-request ausgeführt wird, der einige Daten in ein <div> lädt (html bzw html durch jsp).

Kann man nun irgendwie die im File deklarierte ready()-Funktion erneut aufrufen? Sie ist etwas umfangreich und möchte sie deshalb nicht erneut schreiben.

Mit freundlichen Grüßen,

Jobe

PS: Die Funktion:


$(document).ready(function(){

mach_ganz_viel();

});

Bearbeitet von Jobe2009

OK, hat wohl keinen intressiert.

Hier die Lösung:

Anstatt das Binding über $.document.ready(function(){...});

habe ich das Binding über $(document).live(function(){}); gemacht, so dass ein Live-Binding erfolgt.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.