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


  • 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

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.