callback - jQuery/Javascript Functions Don't Work After Changing Content -
**
i have solved deleting jquery library imports in page called via ajax.thanks helps guys!
**
i developing admin panel game.all things ok have problem js functions.i have index.php , server.php...i include server.php ajax callback function.that ok.i can retrieve of form content except head tags guess.i have script.js witch has functions.i add script both of pages.when change content callback, server.php's functions don't work.
i've read articles that.they change script.i've changed way below see.it $('#dialog_confirm').click
it.i still can't use functions in server.php. when open server.php in new tab without callback, works.what can do?thanks in advance.
$('#dialog_confirm').live("click", function() { $.confirm("confirm?", function() { $.msg("yes!"); }, function() { $.msg("canceled"); });
i use that in order change page content.
ok example of calling server.php in ajax putting returned data in tag calls "#putstuff"
$.ajax({ url: "server.php", success: function(data) { $('#putstuff').html(data); } });
Comments
Post a Comment