jquery - MVC partial load in document.ready not getting fired -
i have
<div id="reports"> <img src="~/content/img/wait.gif" />loading reports... </div> ... @section scripts { <script type="text/javascript"> $(document).ready(function () { alert('test'); $("#reports").load('/report'); $("#reporttype").change(checkreportselection); checkreportselection.apply($("#reporttype")); }); </script> }
on machine, #reports loaded data report controller page loaded. tried on different machine, targeting machine , worked fine. host machine windows 10.
when deployed machine server 2012 r2, "loading reports..." stays , report controller not invoked (checked using debugger). tried using chrome , ie , doesn't work.
i alert know document.ready fired.
what issue? thanks
turns out issue path. charlietfl. using url.content(...) worked
Comments
Post a Comment