• Kennette Rodriguez
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 0
    Replies
Hey,

I wanted to know how to add a jquery library as Static Resource and also how to call it from a VF page?

Thank you very much, 
Regards. 
Hello, 

I was trying to make an example of jQuery with visualforce, I was adding as static resource the jQuery library. Then I was using the following code in a new VF page:
 
<apex:page id="page">
    <apex:form id="form">
        <apex:outputPanel id="panel">
            <apex:inputText id="input" onfocus="foo();" />
        </apex:outputPanel>
    </apex:form>
    <!-- Uploaded jQuery as a static resource -->
    <apex:includeScript value="{!URLFOR($Resource.jQuery, 'js/jquery-1.7.2.min.js')}" />
    <script>
        function foo() {
            jQuery( 'input[id$=input]' ).val('Foo');
        }
    </script>
</apex:page>
Look like it added the reference, but I am not sure if it located the file, inside the folder of the jQuery library I found the following files:

Folders
Do you think is cause the references path? what should I use?
I changed to: js/jquery-ui.min.js and still the same, without work.

Thank you very much,
I will apreciate your help!
Hello,

I wanted to know about compatibily of VF with HTML5, I dont know how possible is to mix html5 tabs and Apex Tabs?

Thank you very much,
Regards.
Hello,

I wonder about: Is Force.com the same as VisualForce?
  • If different, what are the main differences betwen both?
  • If the same, why do they have different names?
Thank a lot.