Monday, May 30, 2016

Asignment 05 on JQuery

JQuery

To do a webpage with jQuery, you will first need to get the jQuery file placed in the website folder, or linked to another hosting site that has the file.

If the file has been down loaded to the local machine, you will need to place it in the project.
For Visual Studio, right click on the project name and select add.
There in that menu under add, select new folder to make a Scripts folder name to place the file into the webpage directory to keep things organized.
You will need to add the file in manually when you add a create a folder in Visual Studio, to do that you will need to right click on the Scripts folder, and select add, and then add existing item to get the jQuery file to show.


 
Once you have the file in the Scripts folder, drag and drop the file into the head of the master page .master file.

On any other pages that you want to use jQuery on, it will be already loaded by the .master file.

To use the jQuery functions, start out by making a <script></script> tags.
In the script tags, start out by using the $ and the .ready function.  This allows the contents of the page to load before all of the functions that are in the JavaScript in the webpage become usable.



No comments:

Post a Comment