Category: Web Development
Allow the Cross Origin Request (CORS)
Cross Origin issue is resolved by adding header(“Access-Control-Allow-Origin: http://yoursite.com”); to allow the particular origin or we can also allow all the origin by replacing the path to *. For Cake php header is defined in file public/index.php. Code: header(“Access-Control-Allow-Origin: http://yoursite.com”);
Creating a Lightning Custom Page/App
We can access different features of Salesforce on a single page by building a custom Lightning App: 1. Multiple features of salesforce on one page 2. Custom homepage 3. Edit layout of objects like adding tabs, flows, hierarchy etc. Steps
Introducing WordPress versions 4.9.4 and 4.9.5
WordPress Version 4.9.5 WordPress 4.9.5 is released on 3rd April 2018. This version is released to fix the security issues. There were three major security issues which are solved by the WordPress community in this version: 1. Don’t treat localhost as
Salesforce | Read csv file, insert objects and get results back in Apex visualforce page
If you have a csv file with raw data and you want to read it using apex, convert to sfdc objects and insert these, then get success and failure results back then following steps and code can help you:
How to animate objects using @keyframes CSS3 rules
CSS3 provides us a way to animate our objects using @keyframes css rule. In the below example we will animate a spinner using @keyframes rule. Steps: 1. Create an html page and add below HTML5 section element to it: <section
Some Simple and Advanced Features of jQuery Datatable
In this blog, I am going to share some simple and advanced features of jQuery datatable. These are: 1. Custom table message in case no records exist. 2. Set Default records length. 3. Set search filter by default. 4. InitComplete
Sort list 1 by sorting 2nd list using Jquery UI sortable
How to sort the 1st list of HTML elements by sorting the 2nd list of HTML elements using Jquery UI sortable? Problem: I am creating two HTML lists using Div elements in my project and I want to change the
Node.js introduction and configure a test project in Eclipse
Node.js is an open-source, cross-platform runtime environment used for development of server side applications and networking applications. Basic features of Node.js are : 1. Most of its modules are written in JavaScript. 2. It is mostly used in real time
GrapesJS – Storing HTML on server side
In GrapeJS to save html code of document in database use your own save function (like saveContent() in this example) inside editor’s ‘storage:store’ event method. Example: editor.on(‘storage:store’, function(e) { saveContent(); //your method where you store html content of document in
