­
ForceTree.com: javascript
Aura

Import external CSS and Javascript files in Lightning Aura Component Vs LWC Component

3:54 PM
 This post explains how to import external Javascript and CSS files into a custom lighting component. The first section deals with Aura Component, whereas the later sections explains the same for a LWC component.STEP 1:Download the CSS and JS files. Upload them as a static resource. For this example, let's pick bootstrap. Get bootstrap v4.5 from https://getbootstrap.com/docs/4.5/getting-started/download/ and click the first download button.Upload...

Read More...

autosave

AutoSave in Visualforce + Calling an Apex Function from Javascript

4:31 PM
I had a couple of Visualforce Page forms. Each form had multiple input boxes for the user to input information. I had a save button at the top and bottom of the page. But still, sometimes the user might accidentally close or navigate to some other page. Auto Saving the page in regular intervals was so nice to have. To do this we...

Read More...