davidrhoden / jquery-modalbox-plugin

Automatically exported from code.google.com/p/jquery-modalbox-plugin
0 stars 0 forks source link

can not direct call ajax + post data #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.$.fn.modalBox({
                    directCall: {
                        type: 'ajax',
                        source: 'test.php'
                        data: {test:'test'}
}});

What is the expected output? What do you see instead?
data need to submit with ajax request

Original issue reported on code.google.com by alli.gov...@gmail.com on 26 Apr 2013 at 9:00

GoogleCodeExporter commented 9 years ago
Hi Govender,

your Example is not supported yet. Please try following solution:

jQuery.ajax({
    url : 'test.php',
    data : {
        test : 'test'
    },
    success : function(data, textStatus){ 

        jQuery.fn.modalBox({ 
            directCall : {
                data : data
            }
        });

    }
})

Regards,
Steffen

Original comment by steffen....@googlemail.com on 1 May 2013 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by steffen....@googlemail.com on 18 Dec 2013 at 7:52