JavaScript date comparison
Why does the equality operator return false in the first case? var a = new Date(2010, 10, 10); var b = new Date(2010, 10, 10); alert(a == b); // <- returns false alert(a.getTime() == b.getTime()); // returns true Why? ...
Why does the equality operator return false in the first case? var a = new Date(2010, 10, 10); var b = new Date(2010, 10, 10); alert(a == b); // <- returns false alert(a.getTime() == b.getTime()); // returns true Why? ...
I recently encountered a printing issue in Firefox that eventually turned out to be a problem with the fieldset tag we wrapped the entire page in. (Bugzilla: Bug 471015) All browsers have their own rendering quirks and issues, but it can be very hard to know what's causing different behaviors. Sure, you can Google, but that's often ta...
I'm modifying an existing FaceBook application. The FaceBook application is generated by another application, so I don't have much control over it. I can only add html/javascript. My goal is to use FBJS to detect the current language setting of the user and display a different message depending on their language. For example, if the us...
I'm building a site for streaming online radiostations at http://bigups.dk using jplayer. The stream causes the browser to build up memory until no memory is left on the client. Is there any way to release this memory via javasript? ...
I am using the Google Maps API with parts in javascript and others in PHP. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Map...
Hello all, I would like to set an attribute for a div. I have done this: $('#row-img_1').onmouseover = function (){ alert('foo'); }; $('#row-img_2').onmouseout = function (){ alert('foo2'); }; However, the above has not worked, it does not alert when mouse is over or when it moves out. I have also tried the $('#row-img_1').attr(); a...
How can I access an JavaScript variable from within an JSP page ? ...
Right now, I am working with a page that is automatically updated and I'm using setInterval to check for new elements. I'd like to do this with events but I don't know how to tell if an element has been added to the page via an event. Is this possible? ...
I’m new (only two weeks old) in jQuery, so please bear with me. I know that a very similar question was asked some time ago, but I do not know how to adapt the answer to my problem. I have a very wide multicolumn layout something like this: | aaaa | bbbb | cccc | … | | aaaa | b | cc | … | | aaa | cccc | ddd | … | The code...
I have been following the Google Chrome Extensions Developer's guide and have been able so far to create an extension with a browser action without popup that would trigger a webkit notification in HTML format. Fact is that this HTML file contains action buttons, links and javascript, but none of them seems to respond. Is this a by-des...
Hello, I've been having problems with the infoWindows and Google Maps API v3. Initially, I've ran into the problem that everyone else has of closing infoWindows when opening a new one. I thought to have solved the problem by defining "infowindow" beforehand. Now they close when I click on a new marker, but the content is the same. How ...
Can I write ASP code in a .js file. Or if there is any way through which I can update database in a .js file. ...
why this doesn´t work: inputButton.addEventListener('onchange', jsFunction, false); I change the inputbox and it doesn´t call jsFunction. ...
I have a spreadsheet with various financial information in Google Docs, and I'd like to make some kind of dashboard web page for myself to summarize things. Getting charts in is easy, however, putting in things like the totals of monthly outgoings. I know I can save the spreadsheets to html, or embed the entire spreadsheet or select sec...
i am going mad with this problem now - if u goto http://talll.com and start clicking around on the menu items like news, economics etc., u will find that the page title says "undefined" - i just want to set the page title to some value thats all - HELPPPPPP!!! ...
I am planning to build a JS based twitter client. Information about libraries/clients is pretty old on other SO Questions. I was wondering if anyone has come across wrappers other than Spaz and TwitterHelper. Addition : Please note this will be client app which I also plan to run on mobiles using phonegap. Thanks :-) ...
I just saw the Google Pacmen game and I think it's the most professional JavaScript application that I ever saw! What other application do you know about, that are in this level of profession? ...
Hi, I have been trying to create a login form using JavaScript. My login form needs to do the following using JavaScript validation login field contains only letters with a minimum of 4 and a maximum of 6 letters password is at least 5 characters long and not more than 7 characters and contains only letters and digits with at least...
Is there any way to completely disable web page scrolling in an iPhone web app? I've tried numerous things posted on google, but none seem to work. Here's my current header setup: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> <meta name="apple-mobile-web-app-capable" conte...
I'm using jQuery Masonry to lay out my page, but I'm using a custom @font-face font. The problem being that Masonry doesn't know the metrics of the font until it's loaded. The Masonry docs suggest that you use $(window).load() instead of $(document).ready() to call the layout functions, but I don't want to have to wait until all the ima...