O'Reilly logo

Visualforce Developer's Guide by W.A.Chamil Madusanka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using JavaScript in Visualforce pages

JavaScript is one of the key browser technologies for Visualforce pages. JavaScript provides the framework for communicating between other JavaScript objects, HTML elements, and the Visualforce controller. We can use JavaScript libraries as well as some Visualforce components (such as <apex:actionFunction>, <apex:actionSupport>, <apex:commandButton>, <apex:commandLink>) with Visualforce pages. JavaScript code can be written in a Visualforce page and can be included in a Visualforce page by using a static resource. This is the best method to use to include a JavaScript library in a Visualforce page. We can use the <apex:includeScript> component to include a JavaScript library from static resources. For example: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required