Skip to content
June 3, 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)

    1 year ago1 year ago
  • Monty hall problem

    Monty Hall Problem

    1 year ago1 year ago
  • How to install dev(localhost) certificate on windows

    1 year ago1 year ago
  • Meaning of different parameters of redis cache

    1 year ago1 year ago
  • MsSQL – char and varchar comparison, storage concept

    1 year ago1 year ago
  • Impact on performance for case insensitive table and column name(lower_case_table_names) Mysql

    1 year ago1 year 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.