+ Start a Discussion
ihssan tazinyihssan taziny 

How to reference javascript function defined in Static resource in a List Button

I programmed a button to execute javascript code when i click on it. And for the Button code i am using a static resource that has some javascript functions. Here's the way i include my Static Resource in my Button code :
{!REQUIRESCRIPT('/resource/1437644087000/uploadFunctions')}

The problem is that when i want to call a function defined in the static resource i get an alert message telling me that the function is not defined.
I am calling the function in my custom Button like this:
var parentForm = this;
var rows = getCheckedRows(parentForm);

So my question is how can i call the function  getCheckedRows. that is defined in the stqtic resource.
Ajay Nagar 7Ajay Nagar 7
Same issue fixed here:
https://success.salesforce.com/ideaView?id=08730000000KRuxAAG
http://jevonearth.blogspot.in/2011/08/using-static-resources-with-salesforce.html