Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.

learn more… | top users | synonyms

7
votes
1answer
125 views

URL rewriting for static resources

I know you can serve static HTML by uploading it as a static resource, but is it possible to create a URL rewrite rule for a static resource? Something like this if (url.startsWith('/coach')){ ...
1
vote
2answers
81 views

JavaScript file in a static resource [duplicate]

I have a two JavaScript (.js) files in a static resource. When I enter the full URL of a JavaScript file in the browser, ...
2
votes
3answers
87 views

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 ?
2
votes
3answers
55 views

Linking to external CSS and JS inside your Visualforce Page

Is it at all possible to have <link href="http://jacobraccuia.com/styles.css">inside your Visualforce page and have it work when clicking the http://cs14.salesforce.com/apex/visualforce_page? ...
3
votes
1answer
34 views

In a managed package, how should you reference static resource images from css defined in a static resource?

The following works in my dev org and the packaging org, but not in an environment with the package installed: .edit-step-icon { background: url("png_list_edit_icon") no-repeat top left; ...
4
votes
1answer
80 views

How to save a universal value in a Salesforce Instance

I need to save a value in a Salesforce Instance which should be universally accessible (In VisualForce Pages, Apex Classes). An example would be to save the account ID to link all contacts (from the ...
1
vote
1answer
45 views

Is it Possible to access SDK From Static Resource?

If I have a SDK in .jar file can I upload it to Static Resource and call it in Apex Classes. As per Documentation it says I can able to call ".css" , ".Js" , ".Jar" Files in VF Page.
1
vote
2answers
113 views

Editing a Static Resource via Apex with Metadata API

I have recently found a way to create a Static Resource via the Metadata API - see this article. So, I was curious if it was possible to not only create a static resource, but to either: Edit the ...
0
votes
1answer
44 views

Is there any way (CSS, static resource?) to change the font size of all dynamic choices in Visual Flow?

I have been successful overriding the font size for different field labels but not the elements of my dynamic choice fields.
7
votes
3answers
437 views

What are the advantages/disadvantages of adding JavaScript libraries as a static resource?

I maintain a product on the AppExchange that currently references both JQuery and custom JavaScript that are included in a static resource. Now that I am making some additional updates to the package, ...
3
votes
1answer
125 views

Display PDF Stored in Static Resources in VF Page

I currently have a VF Page that displays a Link to a PDF stored in Static Resources. I am using this VF Page to override standard SFDC help. Users clicks "help for this page" | VF Page displayed | ...
4
votes
1answer
72 views

Can I get a compile-time reference to a StaticResource in Apex?

In Visualforce Pages, I love how we can do {!$Page.MyPage} or {!$Resource.MyFileZip} and get a hard binding to either, complete with namespace resolution and URL generation. In Apex we can do ...
1
vote
1answer
87 views

How to add sliding image to site.com

I am designing a site.com in this site i am trying to get 3 image from static resource and need to slide using jQuery. Is this possible? If there is any way to get the scenario done please guide me. ...
1
vote
0answers
53 views

Comparison/diff tool for the files in static resources with in eclipse

Is there any tool which compares the differences between the previous file and the current file in the static resources. Static resources have many files and many people are working on it. We need a ...
7
votes
3answers
267 views

Static Resources being loaded in different order

I am developing a Salesforce application that is using jQuery, jQueryUI and a custom plugin. The script tags in the page markup are in the correct order: <script type="text/javascript" ...
4
votes
1answer
61 views

Is there a way to access local static resource from a managed package

I have managed package which has a VF page which displays some images. I need someway for users in the installed environment to change the images to suit their requirements. I certainly know that we ...
2
votes
3answers
596 views

Include both Html page and its CSS content in static resources and reference in Visualforce Page

I have included the html page and its css content in static resource and I am trying to reference the html content in visualforce page.HTML file will be used as header and footer for all of my ...
5
votes
1answer
198 views

Embed content above Salesforce tabs

I was just checking out this app in the AppExchange, and I want to implement something similar in my own company: https://appexchange.salesforce.com/listingDetail?listingId=a0N30000005ueMvEAI Any ...
0
votes
0answers
99 views

Spell checker with Bjspell

Did any one tested spell checker in visualforce page with BJSpell .I have included the bjspell.js file in static resource and included the script in vf page with apex:includescript but still spell ...
3
votes
1answer
132 views

Can a static resource from a managed package be modified from installed env?

I have a static resource which is a zip file of images which i am accessing in my VF page which is a part of managed package. I want to have an ability of letting the installed org have their own ...
4
votes
2answers
242 views

Getting a static resource name from an object and use it in a VF page

I am building a managed package which refers to a set of images. These images would vary from each installation to another. So i was thinking of allowing the users to upload a static resource in their ...
2
votes
2answers
2k views

how do we access the image files from static resource in css?

I am trying to display images from a static resource in a css property. .PDF { width:50px; height:50px; background-image: url("{!URLFOR($Resource.FileTypes, 'png/pdf.png')}"; } What i ...
1
vote
1answer
219 views

Download demo excel sheet form static resource

I have uploaded an excel sheet into static resource of my environment. I have it as a demo for my product how to create a excel sheet for import records into sf. Can any body guide me how can i ...
3
votes
0answers
61 views

Including javascript in the top level window of Service Cloud

I'm working on an integration project that requires showing the Service Cloud from a .NET control. That control generally communicates via a javascript object on the top level window. The problem I'm ...
-1
votes
1answer
122 views

how to create static resources for jqyeryui [duplicate]

Hi i have some problem in the static resources using in jqueryui in visual force, dowmloaded jquery-ui-1.10.3.custom.zip , and stored in static resources page , but unfortunely the ui is not working , ...
2
votes
1answer
219 views

Downloading a static resource does not save with extension

I have a csv file as a static resource and i am allowing users to download this file using the following. <a href="{!URLFOR($Resource.AccountUploadTemplate)}" target="_blank">Click here ...
3
votes
1answer
139 views

Using SASS with Visualforce

As we build some bigger projects, I've been thinking about using a CSS pre-processor like SASS to help manage our CSS resources. Developing on Salesforce, though, I could see that getting ...
3
votes
1answer
509 views

Unable to access nested files in static resource

I have a zip file containing images as a static resource. After repackaging the zip and uploading a new copy I'm no longer able to access the contents from VisualForce pages. I access the image like ...
3
votes
1answer
1k views

Can I reference a Static Resource in an HTML Area?

I'd like to reference a Javascript file (Static Resource) in an HTML area within Salesforce - is this possible? Or can I only reference Static Resources from a VisualForce page? If it is possible, ...
3
votes
2answers
302 views

DataTables in VisualForce Page, Setting swfPath as Static Resource

I have been working with the DataTables library in VisualForce and have everything working except for the export features. I followed the sample initialization on the DataTables website, but am ...
-2
votes
1answer
145 views

What does this error: Static Resource named UploadTemplate does not exist [closed]

Hi am getting this error on my VF code, now only i started learning VF. Can anyone tell does it mean Error:Static Resource named UploadTemplate does not exist
2
votes
1answer
306 views

pulling static resource to local file system

I'm trying to add a static resource file I uploaded to my dev org to a git repository. Every time I tell the IDE to refresh from server it doesn't pull the static resource to my local file system. I ...
1
vote
2answers
513 views

What does the cache control value control in a static resource?

While creating a static resource there is an option for specifying Cache Control, This contains two values Public and Private. What does these values actually control?. Initially had an Idea that ...
8
votes
3answers
3k views

jquery in a visualforce page

I am new to using jquery in visualforce and seem to be stuck just getting the static resource to work correctly. I have two js files, one is the jquery the other is a qrcode generator. Both are ...
9
votes
1answer
225 views

Testing callout with zipped static resource

How can I access the content of a static resource zip file to create several callout mocks? I'd like to group all service responses in a single zip file without create several static resources. In ...
4
votes
4answers
892 views

What is the best way to manage javascript resources for Visualforce pages?

So at the moment when I want to make a quick tweak in a javascript file that enhances a Visualforce page, I have to go: Setup >> Development >> Static Resources Find my script in the list (takes a ...
10
votes
4answers
1k views

Is it possible to use images in Visualforce generated PDFs which are not static resources?

I'm trying to generate a Visualforce PDF (renderAs) with a variety of images from different sources includes Salesforce Attachments and Documents, as well as third party sites. So far I've only been ...