Currently, I am not able to see what's been return so that I can catch the return value. The way I think can be done is using Ajax callback so that at least I can see what this callback is returning.
I want to capture the below screenshot error in the Jquery Ajax callback. Currently, When I press F12, I do not see the returned value so it is hard to validate what's been returned.
I am a beginner at this so do not have much idea o it. If someone can help out it would be much more appreciated.
@{ string Url = ViewBag.testUrl; } <br /> <div id='test'> <center><h4>Good morning</h4></center> </div> @section Scripts { <script> $(document).ready(function () { var parameter = [ 'height=' + screen.height, 'width=' + screen.width ].join(','); $("#test").hide(); window.open('@Url', '_blank', parameter); }); </script> } https://stackoverflow.com/questions/65756281/how-to-write-jquery-ajax-callback January 17, 2021 at 08:53AM

没有评论:
发表评论