Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141741 | Jan 2,2019 04:19 AM UTC | Jan 2,2019 06:57 AM UTC | ASP.NET MVC - EJ 2 | 1 |
![]() |
Tags: Chart |
[Index.cshtml]
<div class="row" style="margin-top:10px">
<button onclick="refreshChart()">Refresh Charts</button>
</div>
Initial rendering of chart
<div class="row" id="sensorContentContainer">
@Html.Partial("_viewChart");
</div>
<script>
Refreshed the chart in ajax request
function refreshChart() {
$.ajax({
url: '@Url.Action("Create")',
type: 'GET',
success: function (response) {
$('#sensorContentContainer').html(response);
}
});
}
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.