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

Export all workouts from Sports Tracker

20
Comments
Export all workouts from Sports Tracker

Almost all sport tracking sites do not have "Export all" functionality. They want you to stay with them as long as possible. The same with Sports Tracker. There is no such functionality on their website, you can export workouts only one by one (which is annoying). But with a bit of JS magic, we can download all workouts in GPX format. Login at http://www.sports-tracker.com/ Go to http://www.sports-tracker.com/diary/workout-list Click "Show more" button at the end of the page until you have all w...

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