jQuery Interview Questions and Answers
Ques 11. What are your tools of choice to get the jQuery job done?
Ans. For editing files, I love the e texteditor. 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. Is that cool or what? 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.
Other than that, I like TortoiseSVN, even if it slows down the Explorer, I love Photoshop, especially the new version with hardware acceleration, Trillian Astra for instant messaging, Gmail for email, Firefox 3 for browsing, VideoLAN for playing video, Keynote for preparing presentations, and WinSCP/Putty to do server administration. Phew, I guess that's about it.
Ques 12. Back onto jQuery UI Can you see jQuery UI making more of an impression in the future, lead by the current successes of jQuery?Ans. This question is difficult to answer because 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?
Ques 14. How to use jQuery.connect?Ans. download jquery.connect.js file
include this file in your html file.
and use $.connect function to connect a function to another function.
Ques 15. Different ways of using $.connect function in jQuery?Ans. 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
// fun1, fun2 are global functions
Most helpful rated by users: