send an Html var using $ajax
Hi,
Im trying to make a inline-edit table (it work) with jquery.
But i need to customized some cells with html ( <br> <b> </b> ) nothing extravagant :)
My problem is that my var in truncate with there is a html tag
My code
- function saveToDatabase(editableObj,column,id,tableToUp) {
- $(editableObj).css("background","#FFF url(loaderIcon.gif) no-repeat right");
- $.ajax({
- url: "saveedit.php",
- type: "POST",
- dataType : 'html',
- data:'column='+column+'&editval='+editableObj.innerHTML+'&id='+id+'&tableToUp='+tableToUp,
- success: function(data){
- $(editableObj).css("background","#FDFDFD");
- //alert(data)
- }
- });
- }
Any idea ?
Thank you by advance