Created
December 3, 2010 03:09
-
-
Save irobinson/726528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#submit-items').click(function(e) { | |
e.preventDefault(); | |
if ($('#Form').validate().form()) { | |
var items = new Array(); | |
$('#income-list li').each(function(intIndex) { | |
var $item = $(this); | |
var incomeItem = { | |
CategoryId: $item.data('categoryId'), | |
Amount: $item.data('amount') | |
}; | |
items.push(incomeItem); | |
}); | |
var proxy = new ServiceProxy("/DesktopModules/AdvancedAjaxInDnnDemo/WebService1.asmx/"); | |
proxy.invoke("Save", { | |
userId: DemoViewContext.UserId, | |
incomeItems: items | |
}, function(result) { | |
alert(result); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment