How-to Fix "Http failure during parsing" Error

0
Comments
How-to Fix

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.

Read further...

How to check if AdBlock is enabled

1
Comments

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...

Read further...

Call WCF service method from javascript (jQuery)

0
Comments

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...

Read further...