You need to sign in to do that
Don't have an account?
indy
Reference Static Resource from an OnClick Java Script List Button
Hi,
How to reference static resource in list button.
i.e My js file in Static Resource contains: (Static Resource is saved as 'LiquidatedAccounts')
<script>
{!REQUIRESCRIPT('/soap/ajax/25.0/connection.js')}
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
function liquidatedAccount()
{
var acc=true;
return acc;
}
</script>
In my list buttton(Execute Java script behaviour) , I am calling the liquidatedAccount() method in the following way and getting an error message says 'liquidatedAccount' is not recognized, Please suggest.
{!REQUIRESCRIPT('/soap/ajax/25.0/connection.js')}
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
{!REQUIRESCRIPT("/resource/1392210043000/LiquidatedAccounts")}
var test1 = liquidatedAccount();
alert(test1);
Thanks,
Indy
How to reference static resource in list button.
i.e My js file in Static Resource contains: (Static Resource is saved as 'LiquidatedAccounts')
<script>
{!REQUIRESCRIPT('/soap/ajax/25.0/connection.js')}
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
function liquidatedAccount()
{
var acc=true;
return acc;
}
</script>
In my list buttton(Execute Java script behaviour) , I am calling the liquidatedAccount() method in the following way and getting an error message says 'liquidatedAccount' is not recognized, Please suggest.
{!REQUIRESCRIPT('/soap/ajax/25.0/connection.js')}
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
{!REQUIRESCRIPT("/resource/1392210043000/LiquidatedAccounts")}
var test1 = liquidatedAccount();
alert(test1);
Thanks,
Indy
indy
Ankit,
Thanks for your reply. But when try to save the below code as you suggested
I am getting the below error message
'Field $Resource.LiquidatedAccounts does not exist. Check spelling.'
{!REQUIRESCRIPT('/soap/ajax/25.0/connection.js')}
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
{!REQUIRESCRIPT("/resource/1392210043000/LiquidatedAccounts")}
Thanks,
Indy