Muiter Posted January 26, 2011 Share Posted January 26, 2011 In an normal page Jeditable works perfect but when I use it an div created bij Ajax like this http://www.w3schools.com/ajax/tryit.asp?fi...ryajax_database it won't work. What is wrong? Link to comment Share on other sites More sharing options...
thescientist Posted January 26, 2011 Share Posted January 26, 2011 this may apply to your situationhttp://docs.jquery.com/Frequently_Asked_Qu...AJAX_request.3F Link to comment Share on other sites More sharing options...
Muiter Posted January 27, 2011 Author Share Posted January 27, 2011 Thanks thescientist!It looks like my problem, if I use there example it works <script> $("p").live("click", function(){ $(this).after("<p>Another paragraph!</p>"); });</script> But it's not working when I convert my code from <script type="text/javascript" charset="utf-8">$(function() { $(".dblclick").editable("includes/js/save_to_db.php", { indicator : "<img src='images/icon/indicator.gif'>", tooltip : "Klik om te bewerken", event : "dblclick", style : "inherit" });});</script> to <script type="text/javascript" charset="utf-8">$("td").live("click", function(){ $(this).( $(function() { $(".dblclick").editable("includes/js/save_to_db.php", { indicator : "<img src='images/icon/indicator.gif'>", tooltip : "Klik om te bewerken", event : "dblclick", style : "inherit" }); }); );});</script> Link to comment Share on other sites More sharing options...
Muiter Posted January 28, 2011 Author Share Posted January 28, 2011 This is the solution: $('.dblclick').live('click',function(){ $(".dblclick").editable("includes/js/save_to_db.php", { indicator : "<img src='images/icon/indicator.gif'>", tooltip : "<?php echo $lang['tooltip']; ?>", event : "dblclick", submit : "OK", style : "inherit" });}); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.