Skip to main content

Posts

Showing posts from May, 2019

Events supported by jQuery and benefits of using jQuery event handling over HTML event attributes

One of the main benefits of using jQuery event handlers are that they can be set on elements, which will then be triggered by different events. for example: Below are some of the events supported by jQuery:

Explain how to declare jQuery event handlers outside the $(document).ready() function, indicating the need for that, and the related issues and solutions for them.

Definition and Usage. The ready event occurs when the DOM(document object model) has been loaded. Because this event occurs after the document is ready, It is a good place to have all other J Query events and functions. Like in the example below, The ready() method specifies what happens when a ready event occurs.

Explain the importance of DOM objects and DOM processing in jQuery.

The Document Object Model(DOM) is a programming API for HTML and XML document. It defines the logical structure of documents and the way a document is accessed and manipulated. Nevertheless, XML presents this data as documents, and the DOM may be used to manage this data.

Compare and contrast the use of CSS advanced selectors in jQuery and jQuery’s DOM traversal API, indicating the pros and cons of them.

J Query provides API to traverse through the DOM These DOM navigating APIs are faster than advanced CSS selectors Can navigate through the DOM, element by element Can use DOM element objects.

Explain how the jQuery handles the issues related to partial page loads to the browser.

Through an extraordinary amount of hard work, J Query effectively provides cross-browser compatibility for DOM traversal and manipulation, Event handling and delegation, XHR/Ajax logic, Element selection and document queries, Element attribute, and data management, as well as simple object management utilities. It does so without modifying the browser's native JavaScript implementation by providing a comprehensive abstraction layer.

Identify a list of advanced features provided by jQuery and explain their use towards improving the user experience

Advanced Features     (this) object : it refers to the current object within the scope and inside event handlers, (this) will refer to the element, the event has triggered on Data attributes : All data attributes begin with 'data-'

Discuss the selectors and their use in jQuery

J Query selectors allow you to select and manipulate HTML elements. All selectors in J Query start with the dollar sign and parentheses: $(). The element selector The J Query element selector selects elements based on the element name. - $("p") The #id selector #id selector uses the id attribute of an HTML tag to find the specific element. - $("test") The .class selector .class selector finds elements with a specific class. - $(".test") More Examples of J Query Selectors

. Discuss the advantages and disadvantages of using J Query in different project scales

Advantages The minimum amount of code to do the most things. It only takes few lines of code for developers to achieve amazing results. the developer need not check the client browser type without writing cyclic code, without writing animation function is complex, only through a line of code to achieve the effect can be. Performance. Although different version has many new features, the most streamlined version of the size of only 18KB. Each version of  J Query has a significant performance improvement. Plug-in Unit.  Based on the development of J Query plug-ins currently has about thousands of. J Query is active and "rival" cooperation such as prototype.  Save the developer learning time. if we really want to learn J Query, developers still need to invest a little time. J Query does not require developers to put too much, can begin to develop rapidly, then gradually improve skills. Disadvantages Bandwidth. It takes up a small amount of bandwith to d...

Is jQuery a framework or a library? Discuss.

The very definition of library and framework in JavaScript is quite inseparable. By definition, a library is one which helps you write code faster and probably better without affecting your codding style or adding effects. On the other hand a framework is something that usually forces a certain way of implementing a solution, wheres J Query is just a tool to make implementing what you want to do easier. It largely affects your coding patten. Now consider J Query, It can be library as it's mostly  assist your coding without affecting. Or it can be framework as it allows you to writes small set of codes to achieve likes of animations.

References

https://stackoverflow.com/questions/7062775/is-jquery-a-javascript-library-or-framework# https://www.quora.com/Is-jquery-a-library-or-framework https://www.quora.com/What-is-the-advantages-disadvantages-between-Angular-JS-and-JQuery https://softwareengineering.stackexchange.com/questions/166273/advantages-of-using-pure-javascript-over-jquery https://www.quora.com/What-are-the-disadvantages-of-jQuery https://www.programering.com/a/MTM0gTNwATQ.html https://www.w3schools.com

Explain the features provided by jQuery?

J Query is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy to use API that works across a multitude of browsers. J Query UI is a curated set of user interface interactions,effects,widgets and themes built on top of the J Query J Query Mobile is a HTML5-based user interface system designed to make responsive web sites and apps that are accessible on all smart phone, tablet and desktop devices.   QUnit is a powerful, easy-to-use Javacript unit testing framework, It's used by the JQuery UI and J Query Mobile projects and is capable of testing any generic JavaScript code. Sizzle is a pure-JavaScript CSS selector engine designed to be easily dropped in to a host library.