function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PrachiPrachi 

Set Apex Class Variable in Static Resource

Hi,

 

I'm using a Javascript plugin for displaying Calendar on my VF Page. The plugin is loaded as a Static Resource. I need to set a class variable in one of the methods in the plugin. Is this possible.

Thanks in Advance

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

It is not directly possible, as static resources are not executable code (in the Visualforce sense). However, if the static resource code calls a legal function (apex:actionFunction in a form), it will work.

All Answers

sfdcfoxsfdcfox

It is not directly possible, as static resources are not executable code (in the Visualforce sense). However, if the static resource code calls a legal function (apex:actionFunction in a form), it will work.

This was selected as the best answer
PrachiPrachi

Thankyou for your quick reply.. :)