Thank you for reply after a week of waiting, I also comment this case on SPA page, but no answer.
I have correct to be the following code, but still the same. When I use this on browse data exist http://localhost:3713/api/DataServices/GetDeliveriesForToday, but when I run after
I modified, still do not show my allert. Here the code I modified:
@using DeliveryTracker.Controllers
@section featured {
<section class="featured">
<div class="content-wrapper">
<hgroup class="title">
<h1>Welcome to my Single Page Application</h1>
</hgroup>
</div>
</section>
}
@(Html.UpshotContext().DataSource<DataServicesController>(x => x.GetDeliveriesForToday()))
<script type="text/javascript">
$(function () {
var dataSource = upshot.dataSources.GetDeliveriesForToday;
dataSource.refresh(function (results) {
alert(results);
});
});
</script>
jsiahaan
Contributor
2322 Points
596 Posts
Re: Single Page Application - Prerequirement
Apr 07, 2012 07:00 AM|LINK
Thank you for reply after a week of waiting, I also comment this case on SPA page, but no answer.
I have correct to be the following code, but still the same. When I use this on browse data exist http://localhost:3713/api/DataServices/GetDeliveriesForToday, but when I run after I modified, still do not show my allert. Here the code I modified:
@using DeliveryTracker.Controllers @section featured { <section class="featured"> <div class="content-wrapper"> <hgroup class="title"> <h1>Welcome to my Single Page Application</h1> </hgroup> </div> </section> } @(Html.UpshotContext().DataSource<DataServicesController>(x => x.GetDeliveriesForToday())) <script type="text/javascript"> $(function () { var dataSource = upshot.dataSources.GetDeliveriesForToday; dataSource.refresh(function (results) { alert(results); }); }); </script>Indonesian Humanitarian Foundation