Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Fancybox POST
#3

[eluser]RobertB.[/eluser]
noctrum, my problem is that I can't post.

I can do this and get a response.

JS
Code:
$('#fb-submit').live('click', function() {
        $.ajax({
            type: "POST",
            dataType: "json",
            cache: false,
            url: "services/update",
            data: $('#fb input[type=checkbox]:checked').serialize(),
            success: function(data) {
                $.fancybox(data);
            }
        });
    });

CONTROLLER
Code:
function update() {
        $data = 'Test';
        
        echo ($data);
    }

This will produce a fancybox popup with the word Test in it.

This code is no posting anything, is like the #fb div does not exits but it does, I also try the native fancybox div #fancybox-content and still nothing.

this is the part that is not working.
Code:
data: $('#fb input[type=checkbox]:checked').serialize(),

or

Code:
data: $('#fancybox-content input[type=checkbox]:checked').serialize(),

Thanks


Messages In This Thread
[SOLVED] Fancybox POST - by El Forum - 03-20-2011, 10:17 PM
[SOLVED] Fancybox POST - by El Forum - 03-21-2011, 04:14 AM
[SOLVED] Fancybox POST - by El Forum - 03-21-2011, 07:32 AM
[SOLVED] Fancybox POST - by El Forum - 03-22-2011, 01:53 AM
[SOLVED] Fancybox POST - by El Forum - 03-22-2011, 07:52 AM
[SOLVED] Fancybox POST - by El Forum - 03-23-2011, 04:34 AM
[SOLVED] Fancybox POST - by El Forum - 03-23-2011, 05:10 AM
[SOLVED] Fancybox POST - by El Forum - 03-23-2011, 05:22 AM
[SOLVED] Fancybox POST - by El Forum - 03-23-2011, 07:31 AM
[SOLVED] Fancybox POST - by El Forum - 03-29-2011, 06:20 PM
[SOLVED] Fancybox POST - by El Forum - 04-19-2011, 09:43 PM
[SOLVED] Fancybox POST - by El Forum - 04-19-2011, 11:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB