In my frontend application, I was making requests to the backend API, but in some cases, I was getting the following error: Http failure during parsing for http://localhost/api/get-data. If you are facing the same problem welcome on board! In this article you will see why this error is happening and how to fix it.
Export all workouts from Sports Tracker
How to check if AdBlock is enabled
Here is the simplest way to check if AdBlock is enabled on your site: First of all you should create simple javascript file with following content: var isAdsDisplayed = true; Name it adsbygoogle.js and upload to your web server. Then on the page where you want to check if AdBlock is enabled or not just add the following script: <script src="/js/adsbygoogle.js"></script> <script> if(window.isAdsDisplayed === undefined ) { // AdBlock is enabled. Show message or track cu...
Call WCF service method from javascript (jQuery)
In Advanced Tic Tac Toe we have created WCF backend service and web-based frontend application. Our web application written in javascript, so we want to call WCF service methods through jQuery. There is a small instruction how-to call WCF service from javascript code. First of all you should decorate your service interface with WebInvoke attribute [OperationContract] [WebInvoke(UriTemplate = "Start", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method...