Welcome Guest, Not a member yet? Register   Sign In
jquery post & serialize
#2

[eluser]slowgary[/eluser]
Hi Wimm_vw,

This is a Javascript problem, not a CodeIgniter problem. That may be why you haven't gotten any responses. That being said, the problem is that you can't call the jQuery $.post() method on an element. It works like this:
Code:
<script>
$.post(
     '/gallery/sortable',
     $('#list').sortable('serialize'),
     function(data, textStatus){
          if(textStatus == 'success'){
               $('#info').html(data);
          }
     }
);
</script>


Messages In This Thread
jquery post & serialize - by El Forum - 09-19-2010, 10:15 AM
jquery post & serialize - by El Forum - 09-19-2010, 07:19 PM
jquery post & serialize - by El Forum - 09-19-2010, 07:27 PM
jquery post & serialize - by El Forum - 10-02-2010, 10:59 AM
jquery post & serialize - by El Forum - 10-03-2010, 04:05 PM
jquery post & serialize - by El Forum - 10-03-2010, 05:10 PM
jquery post & serialize - by El Forum - 10-04-2010, 04:38 PM
jquery post & serialize - by El Forum - 10-04-2010, 06:13 PM
jquery post & serialize - by El Forum - 10-05-2010, 04:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB