what does this mean?  (function($){ })(jQuery);   to make the question clearer, what does wrapping a function in parenthesis mean in JS (sorry, I'm a bit confused on the concept of closures). What about the $ parameter? and the "jQuery" i...
Is there a way to change the options array of an html select list using javascript or mootools?    I need to replace the entire options set with a new one. In my ajax response I receive an array filled in with with the new HTML options, so I try to e...
I was wondering if anybody knows how I would go about detecting when the scrollbar appears inside a textarea.  I am currently using mootools for my JavaScript and I am having issues getting it to detect a scrollbar....
I have a problem retrieving the exact css property value (in '%') on firefox.   Suppose we have this extremely simple markup:  <div id="box">box</div>   and this css:  #box{     width:200px;     height:200px;     left:10%;...
I need to support major modern browsers only (IE10+, FF, Chrome, Safari)  Can I make this substitution as I want to simplify my code base:  From:  xhr.onreadystatechange = function () {     if (this.readyState === 4) {         if (this.status === 200...
How to find out which file and line a variable was defined in using google chrome console?  For example, the variable Native (from MooTools) has been defined in global scope. I want to know in which file that defined this variable using google chrome...
I wonder how to replace the bindWithEvent function in Mootools 1.3, the example in the documentation is very basic:  Element.addEvent('click', function(e){ myFunction.bind(bind, [e]);});   But, what about if I need to pass a param to the even...
I've got a page where I'm using Mootools 1.2.4 and MediaboxAdvanced as a lightbox. I can't seem to get the thing working because of a particular javascript error     document.body is null   at the initialization of Mediabox:  $(document.b...
I am evaluating several Javascript UI toolkits for building web applications that have a desktop-like feel, mainly because of dialogs and window management.  I looked at several options - here are my evaluations so far:   ExtJS - Great widget librar...
I was almost sure I could find the answer here, but I wasn't successful. How would you check whether is there some object selected (focused) on the moment of the event call? I tried if (document.activeElement == "[object HTMLBodyElement]"...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.