This project is read-only.

Populate content of flexbox with ajax

Aug 23, 2010 at 2:45 PM

Hello everybody

It is so flexible and the samples really show potential.   Is it possible to get data from database using ajax  and webservice ?



Sep 1, 2010 at 8:56 AM

That would be very easy.

ajaxtarget.php could be any target (also a webservice) but it should return JSON data: nothing else!

In the ajaxtarget you could handle the database transactions. Mind: in the code below there isn't any datachecking...

     $(document).ready(function() {
         $.get('ajaxtarget.php', function(data) {
             $('#mytarget').flexbox(data, {
             //and your options here