Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Add javascript on AllItems.aspx page by list definition

$
0
0

I created new List Definition (and List Instance) in Visual Studio and i am using all default options. How can I add some javascript on AllItems.aspx page of my List Definition so this javascript is deployed with List Definition. I don't want to add web part with javascript on that page after deploy, I want to deploy it with Visual Studio, so my script is always on that page. Is that possible?

Let's say I want to add this script:

$(document).ready(function () { alert("start"); });

So, every time I open AllItems.aspx, I want to get this alert


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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