Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Custom Action With JavaScript

$
0
0

Hello,

  •  I have created a java script in layouts folder. This file contains function called "Test".
  • Then I create the following custom action:

          <CustomAction
       Id="ArticlesListItemsAction"
       ScriptSrc="~SiteCollection/_layouts/VGSP.VIS.MediaCafe2/ArticlesListItemsCustomAction.js"
       Title="View Comments"
       Description="Show comments for article"
       RequireSiteAdministrator="FALSE"
       RegistrationType="ContentType"
       RegistrationId="0x01001024C2BBEEFB4DDA9AA2AD73150109A1"
       GroupId="ActionsMenu"
       Sequence="1000"
       Location="EditControlBlock">
    <UrlAction Url="javascript:Test();"/>
  </CustomAction>

  • I Deploy the solution . Then I navigate to list . Then open the menu of an item of List . Then when press on link , the function not called .

         So what is the problem?

     Thanks

              


ASk


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>