JQuery Blocker
- or -
Post a project like this4130
£40(approx. $50)
- Posted:
- Proposals: 3
- Remote
- #194899
- Awarded
Description
Experience Level: Intermediate
Hi,
I need to use render a view based on the data passed to me in the first get (data/connections)
1) I get the data
2) use the connections from this data + 2 other variables and pass them to an asp.net mvc view where I can convert this back from a json object to a POCO object.
3) display the partial view in a a div with the id search-result-container
Here is the jquery code i have already
$.get("/data/connections",
function (data) {
var variable1 = 25;
var variable2 = 454;
var cons = JSON.stringify(data.Connections)
$.ajax(
{
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: data.ConnectionsList,
dataType: 'json',
url: '/data/DisplayConnections',
success: function (data2) {
$('#search-result-container').replaceWith(data2);
},
error: function (error) {
alert('Fail');
}
});
// $("#search-result-container").html(data)
});
I need to use render a view based on the data passed to me in the first get (data/connections)
1) I get the data
2) use the connections from this data + 2 other variables and pass them to an asp.net mvc view where I can convert this back from a json object to a POCO object.
3) display the partial view in a a div with the id search-result-container
Here is the jquery code i have already
$.get("/data/connections",
function (data) {
var variable1 = 25;
var variable2 = 454;
var cons = JSON.stringify(data.Connections)
$.ajax(
{
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: data.ConnectionsList,
dataType: 'json',
url: '/data/DisplayConnections',
success: function (data2) {
$('#search-result-container').replaceWith(data2);
},
error: function (error) {
alert('Fail');
}
});
// $("#search-result-container").html(data)
});
Rise D.
100% (2)Projects Completed
5
Freelancers worked with
5
Projects awarded
27%
Last project
13 Feb 2013
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies