Jump to content

Jeditable and Ajax


Muiter

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...