Salesforce | Passing data via Javascript to Apex Controller

| By Webner

Some situations occur when we become unable to pass the data from visualforce page to apex controller directly.  For example: Suppose you have three divs (todoDiv, doingDiv, doneDiv) that are showing some tasks through the List from apex controller. It

Java | Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter

| By Webner

Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter in java 6 and 7. Solution: javax.xml.bind.Datatypeconverter class is the built in class inside JRE. We don’t need any third party library as we need in case of Cipher encoding/decoding method. javax.xml.bind.DatatypeConverter.printBase64Binary(byte[]) encodes a byte[] array into

Jquery | How to create/edit Jquery Datatable dynamically

| By Webner

How to create/edit Jquery Datatable dynamically? HTML code: <div class=”col-md-12 col-sm-12 col-xs-12″> <table id=”table”> <tbody> <tr> <th>Rules</th> </tr> </tbody> </table> </div> <button id=”go”>Go</button> Here is the javascript function: function addData() { var data=[this array contains all the values that we

Salesforce | Data Loader Application error about upgrade to TLS 1.1 or Higher

| By Webner

You may receive receive error in Salesforce Data Loader Application about upgrade of TLS 1.1 or Higher. To resolve this issue follow these steps: Step 1: Install latest version of Java. Step 2: Goto setup in Salesforce > type Data

Selenium | How to perform search with Selenium script

| By Webner

In this post I will give an example of how to perform search with Selenium script on a webpage. Below is the screenshot of the webpage: Code to automatically enter a keyword “paint” in the textbox and then click Search

How to access javascript array in php on submit

| By Webner

Suppose you have a Javascript array and want to send it to the server side on page submit then you can use this method. Suppose we have a Javascript array with 3 elements: var test = [“test1”, “test2”, “test3”]; Now