Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
Results 1 to 1 of 1
Thread: ajax update mysql using php
-
09-26-2015, 10:12 PM #1Regular Coder
- Join Date
- Aug 2005
- Posts
- 258
- Thanks
- 8
- Thanked 0 Times in 0 Posts
ajax update mysql using php
Hi,
I have the following code:
HTML FILEPHP Code:$('#mision').editable({
url: 'ajax.php',
type: 'post',
async: true,
cache: false,
pk: 1,
success: function(pk){
//
}
});
$('#mision_pencil').click(function (e) {
e.stopPropagation();
e.preventDefault();
$('#mision').editable('toggle');
});
My database is updated but the parameter "mision" is always empty I think is not passed by POST.PHP Code:<tr>
<td width="70%">
<div id="mision" data-pk="1" data-type="wysihtml5" data-toggle="manual" data-original-title="...">
<h3>MISIÓN</h3>
texto
<p>aquí hay más texto</p>
</div>
</td>
<td width="30%">
<a href="javascript:;" id="mision_pencil">
<i class="fa fa-pencil"></i> [editar] </a>
</td>
</tr>
Any clue?
Bless



Reply With Quote
