Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellisense Jquery

I know it probably a really easy question to answer but I trying to get Intellisense Jquery working on Visual Studios 2010 over the whole project. I can get it working in one document easy. I've tried placing

 @if (false) { <script src="../../Scripts/jquery-1.7.2-vsdoc.js" type="text/javascript"> </script> }

in my layout page but again only works in this document. Does this mean i will have to copy this into every page?

like image 215
Chris Cowan Avatar asked Mar 24 '26 20:03

Chris Cowan


1 Answers

Unless you use a dynamic generator for html files, yes you'll have to place it in the header of every page you need to add it to unfortunately. You should be changing you links too if you're going live.

 @if (false) { <script src="/../../Scripts/jquery-1.7.2-vsdoc.js" type="text/javascript"> </script> }

I just added a "/" before your src, so that browsers can find your files easier.

like image 97
Shannon Avatar answered Mar 26 '26 10:03

Shannon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!