0% found this document useful (0 votes)
65 views4 pages

Assignment 3 - MIDTERMhh

jQuery is a JavaScript library that simplifies HTML/DOM manipulation, CSS manipulation, event handling, AJAX interactions, and animation effects. To integrate jQuery into a web application, the basic steps are: 1) Download the jQuery library file, 2) Download the desired jQuery plugin files, 3) Copy the required JS, CSS, and image files to your project, 4) Include the files in your HTML, 5) Add the plugin HTML code to your page, and 6) Test and customize the plugin as needed.

Uploaded by

Silhig Lanot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views4 pages

Assignment 3 - MIDTERMhh

jQuery is a JavaScript library that simplifies HTML/DOM manipulation, CSS manipulation, event handling, AJAX interactions, and animation effects. To integrate jQuery into a web application, the basic steps are: 1) Download the jQuery library file, 2) Download the desired jQuery plugin files, 3) Copy the required JS, CSS, and image files to your project, 4) Include the files in your HTML, 5) Add the plugin HTML code to your page, and 6) Test and customize the plugin as needed.

Uploaded by

Silhig Lanot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Assigment - MIDTERM

1. Describe jQuery as a web technology. Cite its features.

The "write less, do more" JavaScript library jQuery is small and efficient.

The goal of jQuery is to make using JavaScript on your website more simpler.

With the help of jQuery, you can perform many basic activities that would otherwise require numerous
lines of JavaScript code by calling methods instead.

AJAX requests and DOM manipulation are only a couple of the complex JavaScript features that are
greatly simplified by jQuery.

The jQuery library contains the following features:

HTML/DOM manipulation

- jQuery offers a variety of effective DOM manipulation techniques. To set or obtain the content of any
HTML element, you do not need to write a lot of elaborate code.

CSS manipulation

- The CSS methods in jQuery allow you to change the CSS class or style properties of DOM items. Use the
selection to obtain the reference to an element(s), then use jQuery CSS techniques to modify it. Some
important methods are css(), addClass(), hasClass(), removeClass(), toggleClass(),etc.

HTML event methods

-jQuery is tailor-made to respond to events in an HTML page.

Effects and animations

-The jQuery animate() method is used to create custom animations.

Syntax: $(selector).animate({params},speed,callback); The required params parameter defines the CSS


properties to be animated.

AJAX
-AJAX, which stands for Asynchronous JavaScript and XML, is a method of interacting with servers that
uses the XMLHttpRequest object. JSON, XML, HTML, and text files are just a few of the forms it can send
and receive data in.

Utilities

Utility methods typically carry out generic, frequently repeated tasks without the need for
object-level state, making them more global in nature. Although Java has built-in functions to
handle String operations, there are a few other tasks we frequently perform that can be reused.

Tip: In addition, jQuery has plugins for almost any task out there.

2. How to integrate jQuery in a web application? Cite the basic integration steps.

We must incorporate the jQuery library into our webpages in order to utilize all the fascinating features
that jQuery has to offer. JQuery can be introduced to a webpage in the same way as any other JavaScript
library by putting the script tag within the head tag and pointing the script tag's src attribute at the
jQuery library.

Integration steps

1) Download jQuery file (optional)

All jQuery plugins use jQuery as a base file to work properly. Therefore, you can download jQuery file.

jQuery file most of the time named as “jquery-version.min.js” (for example: jquery-2.2.4.js or jquery-
3.1.0.min.js”).

However, almost all jQuery plugins already includes jQuery files, so you can skip this and follow next
step.

2) Download jQuery plugin (Nivo Slider) file

Whatever plugin you want to use, download it. Make sure you download latest jQuery plugin. It could be
slider, gallery, menu, accordion, tabs, overlay or any other beautiful jQuery element. For an example, we
can download jQuery Nivo Slider.

Most of these plugin comes with example. If example or demo pages are available, you can run and
check to make sure that it is working. Nivo slider also has demo.html file. You can also check
demo.html’s source code. You will get an idea that what css/js/image files are used for this plugin.

3) Simplify jQuery plugin (optional)


The purpose of this step is to simplify file/folders, so that we can remove unwanted files and focus
should be on including the right files.

There are few files other than css/js/html files which are not mandatory for integration. They exists for
some other or additional purpose. For example, in Nivo slider folder, you can delete (.gitignore,
README.md, package.json etc files). Only css/js/html and image files are required for basic functionality.

4) Download HTML template (optional)

If you already have your own html template or working with existing website, you can skip this step too.
If not, you can download simple html templates.

It is good to experiment with simple html template. Because, If html template is rich in UI, it will already
have a lot of jQuery plugins. Therefore, it will be little complex to focus on right thing. Simple template
will make it easy. Once experimented with simple html template, you can try in other complex websites
with more confidence.

In case your website/template already has jQuery file, there is no need to include it again.

5) Copy/Move all required js/css/image files into your template/website folder

You need to copy all js/css/image files(or folder) into your website folder. You can follow your own
directory structure or simply copy file/folder as it is in jQuery plugin folder. At last you need to make
sure that you are including all those files in html page with proper path.

6) Copy All js/css embedded code into your website page.

Copy all code to embedded css files into head and copy all code to include js files before body (or head).

7) Copy plugin’s main html code(div/li etc) into your website body, where you want to display that
plugin’s functionality.

All jQuery plugin’s use some predefined html tags format (using div/li/img etc) along with some
predefined class/id. You can copy that predefined html code anywhere to invoke that plugin’s
functionality.

8) Fix js/css/image paths

You can now test your website page. It should work fine, if all js/css/images are including with proper
paths. However, your js/css/image file location may differ from the original jQuery plugin folder
structure. You can check each css/js path from page source code and fix them one by one.

9) jQuery plugin should be working by now. You can customize as per plugin options.
In simple words, if you have included jQuery plugin’s all js/css/images files properly, your plugin (for
example slider) should work well. You can customize your plugin (such as slider) using different options
from plugin’s documentation or website.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy