[SalesForce] Static Resource

How to get the path of js file in static resource.

for ex: /resource/1301987741012/resourceName/JSFileName.Js

what is this no. 1301987741012 .is it an Id of resource ?

Best Answer

In Visualforce, use

!URLFOR($Resource.myResource, 'js/JSFileName.js')

or whatever the resource name and path to the file you want is.

http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global_resource.htm

Related Topic