Customize UI to indicate drag drop effect using events ondragenter and ondragleave
Html5 provides us one of the most useful features of drag-drop. The dragging and dropping of files from OS to your web application becomes very easy using drag-drop capabilities. In this case Read more…
What is ETag header and how it works?
ETag stands for entity tag. Etag Header is a response header element which provides a mechanism to cache the unchanged resources. Whenever we make an API call, we can use this header value to track if Read more…
Dynamically applying specific Layout to a record on VF page in Salesforce
You may need a specific layout to show in a tab for a particular record (like account settings). For this, we can fetch ‘Metadata’ field from Field Definition with SOQL using Tooling API. In Read more…
Detect mobile device php code
We often need to detect if site visitor is using an iPad, a smartphone or any other mobile device in order to change website appearance and even make it faster by reducing data load. Normally we use the media queries and Read more…
Enrolling audience to Course or Program in Totara
Problem: I want to enroll audience in course/program and I do not know that how we can enroll audience in course/program. To enroll an audience in course/program, I have followed the below steps Read more…
Implementing Salesforce SOAP and Bulk API Integration in PHP
Salesforce SOAP API:
Salesforce SOAP API is a coding method to use our Org’s information with the help of inbuilt functions and SOQL query. With the help of these function, we can access or Read more…
How to Create a custom plugins in wordpress
What is a WordPress plugin:
A plugin in WordPress is a small software app that can be added to a WordPress site to extend its functionality and to add new features to it without changing its Read more…
How to sort query result according to various search conditions in fetch query of CakePHP 2.
Problem: Priority based sorting of records
Example: Search a string (“Proposalways StudySection”) and display records in following order:
Contain all words (“Proposalways StudySection”) in Read more…
Bootstrap CDN and some common free CDNs
Bootstrap is the most popular front-end framework for developing responsive, mobile first projects on the web. Now I will explain how to use bootstrap CDN in your project.
CDN: CDN is Content Delivery Network. A CDN Read more…
How to resolve the issue of Dompdf is not supporting Font-Family
Problem: We have html with some inline css and we are also importing some files on blade file where we are rendering our html but font families are not supported by Dompdf Read more…
Introduction To WordPress Shortcodes and How to Use them
What is a shortcode?
A shortcode is a WordPress-specific code that lets you do effective things with a very little effort. We can embed the files or can create objects that would normally require Read more…
Understanding the purpose and usage of Inflector in Cakephp
The Inflector class in cakephp is used to modify single/multi word strings into different formats using its build-in methods. We don’t need to use core php methods such as str_replace if you want to Read more…