jquery-bootstrap-scripting icon indicating copy to clipboard operation
jquery-bootstrap-scripting copied to clipboard

POST vs GET for initial load from server

Open davidcarroll opened this issue 13 years ago • 1 comments

It would be good if the following code would cause the contents to be loaded via POST but this does not work, it uses GET regardless.

        var href = $(this).attr("href");
        $('<div/>').dialog2({
            id: "edit-address",
            content: href,
            type: "POST"
        });

I did examine the code and found the ajax call and there is a variable called type, but it is a local var that is never set. See the following:

https://github.com/Nikku/jquery-bootstrap-scripting/blob/master/lib/jquery.dialog2.js#L742-L770

note line 748 where the type variable is declared and line 762 where it is used

I would suggest that options.type is passed in to the load and then to the dialogLoad functions.

davidcarroll avatar May 17 '13 02:05 davidcarroll