-1

This question already has an answer here:

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 , if anyone guide me how to use static resources

ganesz

marked as duplicate by Samuel De Rycke, Jesse Altman, Peter Knolle, Doug B, Ralph Callaway Jul 16 '13 at 16:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Can you show us the code you use in the VF page? – rael_kid Jul 16 '13 at 10:51
  • How do you know "it is not working", what is the message you get ? Adding more details in your question will help us analyse where it's going wrong. Besides that, asking a question multiple times will also not help much. – Samuel De Rycke Jul 16 '13 at 11:53
  • but using url its working , im using static resources its not working , for e.g my static resources name is - jquery , file type - jquery-custoom-1.10.3.zip file – ganesh Jul 16 '13 at 12:02
2

If you upload a zip file you should use URLFOR function like this

<script src="{!URLFOR($Resource.JQuerUI,'jquery-ui-1.10.3.js')}"/>

<script src="{!URLFOR($Resource.YourResourceName,'path_to_file_inside_your_zip')}"/>
  • JqueryUI is the objectname of static resources – ganesh Jul 16 '13 at 11:10
  • Yes. e.g. if it was a simple file (js not zip) you could just write src="{!$Resource.JQueyUI}" – Moti Korets Jul 16 '13 at 11:25
  • but its not working moti korets – ganesh Jul 16 '13 at 11:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.