Solved

How to add JS & Jquery scripts to Nop Commerce Site

Posted on 2010-09-07
3
1,588 Views
Last Modified: 2013-11-18
Hello,

Newbie to Nop Commerce, running version 1.8 and am trying to figure how to insert javascript and jquery scripts into the site. I found this in the Root.Master page, <asp:PlaceHolder id="SCRIPTS" runat="server" />, but am also new to asp.net so  am not sure if this is where the scripts need to go or if I manually need to add them to <head> section.
0
Comment
Question by:Pdesignz
3 Comments
 
LVL 15

Expert Comment

by:AmmarR
ID: 33626045
Dear you can reda this simple intor about how to use Jquery in your code

http://docs.jquery.com/How_jQuery_Works

you need to download the .js file first and add it.

Regards
0
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33628879
The asp:PlaceHolder on the Master page is simply a section for you to add scripts on each page inheriting the master page.

If you want JQuery available on all pages, in the  section of the .Master page, add

<script src="LOCATION OF YOUR JQUERY.JS FILE" type="text/javascript"></script>
0
 

Author Closing Comment

by:Pdesignz
ID: 33655766
Thanks for the clarification, much appreciated!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question