Best Online Resource For Non-Resident Indians      SEARCH COOLNRI.COM
 HOME  FORUMS  PORTALS & REVIEWS  RECIPES  INDIAN RESTAURANTS  GROCERY  CLASSIFIEDS  NEWS  CONTACT  LOGIN
Welcome Guest Search | Active Topics | Members | Log In | Register

JQuery General Questions Options
LalJose
Posted: Friday, January 20, 2012 9:23:11 PM
Rank: Administration
Groups: Administration

Joined: 4/5/2009
Posts: 8
Q.What is jQuery?
A.jQuery is a light weight JavaScript library which provides fast and easy way of HTML DOM traversing and manipulation,its event handling,its client side animations, etc. One of the greatest features of jQuery is that jQuery supports an efficient way to implement AJAX applications because of its light weight nature and make normalize and efficient web programs.
Q.How to use jQuery?
A.jQuery can be easily used with other libraries so it should work out of the box with simple and complex JavaScript and Ajax..
Q.How to use jQuery library in our ASP.Net project?
A.Download the latest jQuery library from jQuery.com and include the reference to the jQuery library file in our ASPX page.
$(document).ready(function() {

alert(‘test’);

});



Q.What are features of JQuery or what can be done using JQuery?

Features of Jquery

1. One can easily provide effects and can do animations.

2. Applying / Changing CSS.

3. Cool plugins.

4. Ajax support

5. DOM selection events

6. Event Handling

Q.What are the advantages of JQuery ?

There are many advantages with JQuery. Some of them are :

. It is more like a JavaScript enhancement so there is no overhead in learning a new syntax.

. It has the ability to keep the code simple, readable, clear and reusable.

. It would eradicate the requirement for writing complex loops and DOM scripting library calls.

Q.What does dollar Sign ($) means in JQuery?

Dollar Sign is nothing but it’s an alias for JQuery. Take a look at below jQuery code

$(document).ready(function(){

});

Over here $ sign can be replaced with “jQuery ” keyword.

jQuery(document).ready(function(){

});
Q.Jumping off of jQuery UI for a second, Do you “release early, release often” with all of your projects? What are your thoughts on that strategy?
A.Speaking for myself, I often release too early. That has been a problem in the past, when we released versions as stable that weren’t, for instance. So it’s important to find a combination of both – a stable release must be stable, while development cannot be halted or blocked through stubborn processes. A labs section is great in that way – it allows developers to contribute freely and plan on an open canvas, with early preview releases, and the work can later be merged back.
Q.Have any of your startup projects failed dismally – if so, why and how did you learn from them?
A.A lot of my side projects failed, as a matter of fact, while others succeeded. Usually, the reason why some project fails is not a technical one, but the fact that one didn’t build meta data around it. That means a dedicated site, documentation, instructions.
Q.Mac, Windows or Linux? Why do you love this platform while using jQuery?
A.I switched to Mac hardware around a year ago and I’m totally in love with it. All components work together nicely, and so far, I never had to return my Macbook Pro to the Apple Store because of an issue. However, I’m still using Windows through Parallels because OSX, while visually nice and stable, has fundamental usability flaws.One of these flaws is the Finder. I recently worked on the jQuery UI Selectables in the labs version, and once again saw that the Finder had great flaws when it comes down to selection. For instance, if you select multiple items and click on one of them, the multiple selection isn’t cleared. Also, my tools that I love for windows simply don’t have an alternative yet .
Q.What are your tools of choice to get the jQuery job done?
A.For editing files, I love the e texteditor (yep, the name is “e”). It basically started as a textmate clone for windows, but since then grew into something much greater. One of the features I can’t live without now is there great multiple selection support. Hold down CTRL, select a couple words through double clicking and then type over all of them.On a sidenote, on one of my talks in Japan the audience asked why I’m so insane to use a Textmate clone through an emulated Windows on OSX – I showed them this exact feature, and they were all amazed.
Q.Back onto jQuery UI… Can you see jQuery UI making more of an impression in the future, lead by the current successes of jQuery?
A.jQuery, other than jQuery UI, can be useful almost everytime. jQuery UI gives you a specific set of user interface widgets and behaviours, and many people think of it as loosing a kind of freedom. On the other hand, there’s definitely some connection – if you’re using Prototype already, and you’re looking for an UI framework, your choice is most often script.aculo.us. If you’re using jQuery, why not use the official side project?
Q.Whats next on the hitlist with jQuery UI?
A.There’s a lot of movement right now. We finally pushed out 1.7 3 days ago, which we believe is a solid foundation for everything that’s coming in in the next couple of months. While 1.7 was a stability and foundation release, the next releases will concentrate around features, so expect to see many more components soon. Some examples are the colorpicker, menu, grid, tooltip and tree widgets.
Q.Is it too early to discuss jQuery UI 1.8?
A.There’s a lot on our list for the year. Filament Group did a great job to start a list of all widgets they could imagine being part of jQuery UI, which can be found and discussed in the jQuery UI planning wiki at http://wiki.jqueryui.com. There’s no definite roadmap for 1.8 yet, but some components are likely to make it into the next release. For instance, widgets that are already being worked on (grid, menu), as well as widgets that we had to kick out of 1.6/1.7 because they weren’t stable enough (spinner, colorpicker, autocomplete). It will be a huge feature release!
Q.If you could give one tip to any new budding jQuery UI developers, what would it be?
A. For jQuery UI, we’re trying to take the same path than jQuery, and people that are restricted to thinking in classical OOP patterns will have a problem. If you think about it freely and give the functional, event-driven and progressive approach a try, you’ll find yourself getting the work done with jQuery UI in a fraction of the time needed than with other frameworks.
Q.what is jQuery connect?
A.It is a jquery plugin which enables us to connect a function to another function. It is like assigning a handler for another function. This situation happens when you are using any javascript plugins and you want to execute some function when ever some function is executed from the plugin. This we can solve using jquery connect function.
Q.Different ways of using $.connect function in jQuery?
A.The syntax of connect function is
$.connect(sourceObj/*object*/, sourceFunc/*string*/, callObj/*object*/, callFunc/*string or Func*/)
sourceObj(optional) is the object of the source function to which we want to connect
sourceFunc is the function name to which we want to connect
callObj(optional) is the object which we want to use for the handler function
callFunc is the function that we want to execute when sourceFunc is executed.
Here sourceObj, callObj are optional for the global functions.
suppose if your sourceFunc is global function then no need to pass the sourceObj or you can use null or self
suppose if your callObj is global function then no need to pass the callObj or you can use null or self
ex:
// fun1, fun2 are global functions
1. $.connect(‘fun1′,fun2)
2. $.connect(null,’fun1′,fun2)
3. $.connect(self,’fun1′,fun2)
4. $.connect(‘fun1′,null,fun2)
5. $.connect(‘fun1′,self,fun2)
6. $.connect(self,’fun1′,null,fun2)
Q.Explain the features of jQuery?
A.Features of jQuery are :
1.Effects and animations
2.Ajax
3.Extensibility
4.DOM element selections functions
5.Events
6.CSS manipulation
7.Utilities – such as browser version and the each function.
8.avaScript Plugins
9.DOM traversal and modification
Q.Explain the concepts of “$ function” in jQuery with an example?
A.The type of a function is “function”.
There are a lot of anonymous functions is jquery.
$(document).ready(function() {});
$(“a”).click(function() {});
$.ajax({
url: “someurl.php”,
success: function() {}
});
Q.Why is jQuery better than JavaScript?
A.
1.JQuery is great library for developing ajax based application.
2.It helps the programmers to keep code simple and concise and reusable.
3.jQuery library simplifies the process of traversal of HTML DOM tree.
4.jQuery can also handle events, perform animation, and add the Ajax support in web applications.
Q.When can you use jQuery?
A.JQuery can be used to
1.apply CSS
2.call functions on events
3.traverse the documents
4.manipulation purpose and
5.to add effects too.
Q.What are the advantages of jQuery.
A.The advantages of using jQuery are:
1.JavaScript enhancement without the overhead of learning new syntax
2.Ability to keep the code simple, clear, readable and reusable
3.Eradication of the requirement of writing repetitious and complex loops and DOM scripting library calls

Q.Is jQuery a library for client scripting or server scripting?
Ans: Client scripting

Q.Is jQuery a W3C standard?
Ans: No

Q.What are jQuery Selectors?
Ans: Selectors are used in jQuery to find out DOM elements. Selectors can find the elements via ID, CSS, Element name and hierarchical position of the element.

Q.The jQuery html() method works for both HTML and XML documents?
Ans: It only works for HTML.

Q.Which sign does jQuery use as a shortcut for jQuery?
Ans: $(dollar) sign.

Q.What does $(“div”) will select?
Ans: It will select all the div element in the page.

Q.What does $(“div.parent”) will select?
Ans: All the div element with parent class.

Q.What is the name of jQuery method used for an asynchronous HTTP request?
Ans: jQuery.ajax()




Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

COOLNRI.COM 2006-2012 |  TERMS OF USE |  PRIVACY STATEMENT |  SEARCH