Skip to content
October 20, 2025
  • Change Permalinks in WordPress(SEO friendly)
  • Monty Hall Problem
  • How to install dev(localhost) certificate on windows
  • Meaning of different parameters of redis cache

Passion for Technology

Newsletter
Random Articles
  • About Us
  • Privacy Policy
Articles
  • Wordpress

    Change Permalinks in WordPress(SEO friendly)

    2 years ago2 years ago
  • Monty hall problem

    Monty Hall Problem

    2 years ago2 years ago
  • How to install dev(localhost) certificate on windows

    2 years ago2 years ago
  • Meaning of different parameters of redis cache

    2 years ago2 years ago
  • MsSQL – char and varchar comparison, storage concept

    2 years ago2 years ago
  • Impact on performance for case insensitive table and column name(lower_case_table_names) Mysql

    2 years ago2 years ago
  • Home
  • Jquery

Jquery

  • Javascript

Jquery: Common place to modify all the ajax request

Ranjit Singh2 years ago01 mins

A lot of time we have to add some common parameter in request header or need to include some parameter in request body or query string. Jquery gives us the flexibility to the same using ajaxSetup method $.ajaxSetup({ // Define a global before request send beforeSend: function(xhr, settings) { if (settings.contentType) { //Update the query…

Read More
  • Javascript

Jquery: common place to handle all ajax request errors

Ranjit Singh2 years ago01 mins

A lot of time we write similar kind of code to handle errors of an ajax request. And changing logic at every place could be a challenge. Jquery has method to handle this $.ajaxSetup({ // Define a global error handler error: function (xhr, textStatus, errorThrown) { if (xhr.status === 401) { // Handle unauthorized (e.g.,…

Read More
Newsmatic - News WordPress Theme 2025. Powered By BlazeThemes.