Category archive

web development

General Posting

82 articles

javascript

Custom Validation for Ninja Form – wordpress

Suppose you have used Ninja Form Plugin in your wordprss website. Ninja form provide you the option to validate the fields like email address, phone numbers format and required validation. But in case you have to add any custom validation then Ninja form provide you the hook to implement custom client side validation.

Jan 10, 2025

Read article

apache

401 Response when PHP-FPM Enabled on WordPress CMS

We recently migrated our website to another hosting service running FPM/FastCGI . We noticed under the website CMS -> tools -> Site Health Status , that all our REST API calls were failing authentication. It appeared to turn the request into an request from an Anonymous user even though we passed Basic Authentication h

Jan 2, 2025

Read article

css

How to find selected and unselected item in select2 dropdown

While using select2 library, if you have to find the selected and unselected item based on the change event when you check or uncheck the items. Based on the checked status, you may have to create some custom trigger or events then you can use the below code reference from codepen to achieve the save. […]

Dec 1, 2024

Read article

General

How to secure your website from attacks

1. Use HTTPS and SSL Certificates SSL (Secure Socket Layer): SSL encrypts the data transferred between the user’s browser and the server, preventing interception by attackers. Implementation: Obtain an SSL certificate from a trusted provider (many hosting companies offer free SSL). Force HTTPS in site settings and .hta

Nov 12, 2024

Read article

HTML

Jquery Date time picker – Show only required dates enabled

<html> <head> <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js”></script> <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js”></script> <link rel=”stylesheet” type=”text/css” href=”https://cdnjs.cloudfla

Jun 20, 2024

Read article

apache

Copy file from one server to another using scp on linux

If you have to copy any files from one server to another, you normally copy the same using FTP or wget. But some time wget function is disabled on server due to security reason. Hence there is one more additional option that you can use to copy your file from another server to your server. [&hellip;]

Apr 26, 2024

Read article

General

Add Prefix in text field

When you have to prefix any hard coded value in a text field, like for example in telephone field you have to prefix the country code and dont want the user to remove it, then in that case assign the prefix code in the text field and add the below javascript code code jQuery(“input[name=’job-code’]”).keydown(function(e

Jan 27, 2024

Read article

General

Detect Change in form fields

<script type=”text/javascript”> var formChanged = false; jQuery(window).load(function() { // This is triggered when the entiire page is loaded fully // form id and all the possible filed type in that form, You can also target by field type, name, class or id jQuery(‘#FrmIdToTarget input[type=text], #FrmIdToTarget selec

Jan 26, 2024

Read article

CMS

How to disable specific wordpress plugins from automatic upgrade

Sometime there is need to use some plugins in an application and you have the need to customize it UI or functionality to meet your business requirements. You install the plugins and make the necessary changes to meet the configuration. Few week later, you discover that your plugins has lost it custom formatting and th

Jan 18, 2023

Read article