I have a Jquery dialog on one of my pages that I think does something 
similar. So when the user clicks "list", the dialog pops up and then when 
they press "Ok" it sets the window.location to a new URL. But I'm guessin 
you probably need to do a POST which I'm not quite sure how that would work.


<a id="opener" href="#">list</a>

$(function() {
    $("#dialog-form").dialog({
        autoOpen: false,
        show: 'fade',
        hide: 'fade',
        modal: true,
        resizable: false,
        width: 200,
        minHeight: 190,
        buttons: {
            "Close": function() { $(this).dialog("close"); },
            "Ok": function() { window.location = "{{=URL('ebay', 'api', 
args=['list', item.id])}}?ebay_category=" + 
document.getElementById("ebay_category").value; }
        }
    });
    
    $('#opener').click(function(e) {
        e.preventDefault();
        $dialog.dialog('open');
    });
});

Reply via email to