What is wrong with the code below?  Maybe it would be simpler to just compare date and not time. I am not sure how to do this either, and I searched, but I couldn't find my exact problem.  BTW, when I display the two dates in an alert, they sho...
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'm fighting against an oddity (I think) of the offsetWidth property. this is the scenario:    I've got, let's say, a span tag, in my js, at a certain point I perform a css3 transform to this element, like:          el.set('styles'...
I would like to focus on a text input in a PhoneGap application when the page loads. I have tried the MooTools version $('entry').focus(); and document.getElementById('entry').focus() when the DOM is ready.   This works fine when the...
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...
There doesn't seem to be any useful documentation out there about parsing XML in Mootools. Either it's so stupidly easy nobody could be bothered to mention it, or it's so fiendishly difficult everybody's given up trying. Does anyone h...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.