Reference a .js file on a spribbon custom action elements.xml
on my javascriptmethods.js file:
function test(){
alert('test message.');}
on my custom action elements.xml:
<CustomAction
Location="CommandUI.Ribbon"
ScriptSrc="/_layouts/.../javascriptmethods.js" Sequence="100">
<CommandUIHandlers>
<CommandUIHandler Command="MyCommands.Alert"
CommandAction="javascript:test();" />
</CommandUIHandlers>
not working, what's missing?
spregards