Solved

How to add JS & Jquery scripts to Nop Commerce Site

Posted on 2010-09-07
3
1,594 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
The viewer will learn how to dynamically set the form action using jQuery.
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)

821 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