Custom button post lightbox values to different url

I made a custom button in lightbox. And I have to send lightbox values to another url different from the default processer url.

var dp = new dataProcessor("/Home/Save");
dp.init(scheduler);
dp.setTransactionMode(“POST”, false);

When I click the custom button, I want the save the lightbox form values in another url. For Example “/Home/Process”

Thank you for your help.

a) you can change url of dataprocessor dynamically as

dp.serverProcessor = “/Home/Process”;

b) you can use scheduler’s api to collect data from form inputs and dhtmlxAjax to send data to any other url