$(document).ready()

Pol

Mitglied
Hello
Ich versuche den angehängten Datei in einer bestehenden Applikation zu integrieren. Die Applikation funktioniert als "Stand alone" perfekt. Wenn ich aber in meine Applikation integriere, dann funkioniert Drag&Drop nicht mehr. Es liegt an dieser Funktion:
Javascript:
$(document).ready(function(){ 
						   
	$(function() {
			$("#contentLeft ul").sortable({ opacity: 0.6, cursor: 'move', update: function() {
				var order = $(this).sortable("serialize") + '&action=updateRecordsListings'; 
				$.post("updateDB.php", order, function(theResponse){
					$("#contentRight").html(theResponse);
				}); 															 
			}								  
			});
		});

});
Ich erhalte auch die Empfehlung
"If your JavaScript code use $(document).ready(), be reminded that the preview page is loaded by Ajax to the document where the $(document).ready() is already fired. You should move your JavaScript code outside $(document).ready() (move to the end of the preview page)."

Ich komme leider nicht vorwaerts. Kann jemand hier helfen?

Danke
Pol
 

Anhänge

  • viewsortierenpreview.zip
    1,4 KB · Aufrufe: 10
Zuletzt bearbeitet von einem Moderator:

Neue Beiträge

Zurück