You need to sign in to do that
Don't have an account?
SS Karthick
External Js and Css in VFP
Hi folks,
Can anyone tell me how to use external java script and css file in Visualforce page?
Give me some example
Thanks in advance
Karthick
Can anyone tell me how to use external java script and css file in Visualforce page?
Give me some example
Thanks in advance
Karthick
Download the js and css from external system.
Saev them in your static resource.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_resources_reference.htm.
Please refer the above link.
Thanks,
Ram
All Answers
http://salesforce.stackexchange.com/questions/32454/linking-to-external-css-and-js-inside-your-visualforce-page
I need simple code for linking external js to vfp
<apex:includeScript value="{!$Resource.<JS File name>}"/>
Does this help ?
If you meant linking the js file hosted somewhere else, I am not sure if we can link external js file directly to visualforce page like we do for css.
Download the js and css from external system.
Saev them in your static resource.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_resources_reference.htm.
Please refer the above link.
Thanks,
Ram
Hi karthick,
the reasons people ask you to use the static resource
1.when u have huge traffics to your force.com sites,your external script provider may reduce no of request come to their server.
2.So the force.com site may become slow or that particular script wont load.
3.if script wont load,u loose the functionlity.
upload the scripts to static resource folder and use them.
thanks
D Naveen Rahul.