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
venkat 10venkat 10 

Issue

 Hi all,
How can I call Static resource on Visualforce page, If I'm doing with  "<apex: include script value= value="{!$Resource.add}"/>}"/>" is not functioning. Please help in doing. Thanks for Help.
Soyab HussainSoyab Hussain
Hi Sachin,

Use this script this will help you to add the script on the page. 
<apex:includeScript value="{!$Resource.add}"/>
If you found it useful please appreciate my efforts and mark it as the best answer

Regards,
Soyab
 
Soyab HussainSoyab Hussain
Hi Venkat,
Follow these points this will help you.
  1. Remove HTML tag from page. <html></html>, Because salesfore autamatically add html tags.
  2. Remove apex:includeScript  tag from the body and add inside the heading tag. <head></head>.
  3. myFunction() function should take some parameters and return some values from your static resource file.
  4. Store myFunction() return value somewhere and show to your page.
If you found it useful please appreciate my efforts and mark it as the best answer

Regards,
Soyab