javascript-library

Mapping keystrokes to actual value? - Javascript

Hi folks, any cool libraries that you know about around? =) ...

Lightweight library for cross-browser event support - JavaScript

Hi folks, cross-browser handling is quite a hassle sometimes. In this case I need to capture quite a number of events, but cannot afford to use a multi purpose library that exceeds 10ish Kb. (e.g. jQuery, Prototype, Dojo, YUI, ...) The script is meant as a basic tracking tool for various sites I'm maintaining. Every browser seems to...

No client script to check file size before uploading [Discusssion Question]

Hi All, I am developing the web based application which require to check size of any file before uploading it on server. It would have been easy if there was any means by which web developer can check size of file at client side instead of checking at server side which could avoid unnecessary trip to server. Is there any security conc...

Comparing javascripts native "for loop" to prototype's each()

So I was having a debate with a fellow engineer about looping in JavaScript. The issue was about the native for loop construct and prototype's each() method. Now I know there are lots of docs/blogs about for and for-each, but this debate is somewhat different and I would like to hear what some of you think. Let's take the following loop...

JavaScript compatibility libraries

Are there javascript libraries that provide forward compatibility with particular implementations? For example, such a library could provide features present in JavaScript 1.6 in a way that's portable across various browsers. It should take advantage of native support for that functionality when available. Some of the frameworks like ...

why this is giving different month

the following code below var unixDate = new Date('07/28/2010'); var unixMonth = unixDate.getMonth(); var unixDay = unixDate.getDate(); var unixYear = unixDate.getFullYear(); alert(filterDate.value); alert(unixMonth); alert(unixDay); alert(unixYear); should give me month 07 but it alrets 06....whys that ...

Interactive javascript charting library to display bar graphs on a timeline

I'm looking for a javascript charting library that can display interactive bar graphs on a timeline, similar to the timeline in Thunderbird's search window. There are many javascript libraries to create timelines with line charts, but my data requires a bar chart. Which library should I use to display my bar graphs interactivly on a ...

LABjs conditionally loading scripts

Hi, I would like to start incorporating LABjs into my project but I want to know if there is anyway to conditionally load scripts. For example, something like: $LAB .script('framework.js').wait() .script(function(){ if(es){ return 'es.js'; }else{ return ''; } }) I have not tried thi...

Turn a comic strip to an iphone webapp

Hi, I am helping a friend to turn her weekly comic strip into an iphone webapp. Is there any sample app that I can learn how this is done? The comic strip is a new jpeg file every week, usually containing 4 blocks. It is desirable to show one block at a time and use swipe events to move back and forth. Any help is highly appreciated....

Will inserting the same `<script>` into the DOM twice cause a second request in any browsers?

I've been working on a bit of JavaScript code that, under certain conditions, lazy-loads a couple of different libraries (Clicky Web Analytics and the Sizzle selector engine). This script is downloaded millions of times per day, so performance optimization is a major concern. To date, I've employed a couple of flags like script_loading ...

What do I need to use Markdown in a Java webapp?

I'm thinking on adding Markdown to a Java project with using: Tapestry 5 Spring Maven ( Among other technologies ) Q1. What javascript library can I use for the client side? I'm thinking on using Cletus' port of MarkDownSharp for the backend. Q2. What strategy should I follow to add JMD to my project? My code it's a Maven pr...

JS (function(){}) syntax

Possible Duplicates: Why would one write global code inside a function definition-call pair? How does the (function() {})() construct work and why do people use it? I'm no JS ninja, and I'm now trying to learn the ins and outs of a language that has a lot more depth than I thought! I've seen a lot of code recently (jquery a...

best way to run narwhal under linux

I'm checking out narwhal. It seems pretty cool, and I'm particularly impressed with the tusk package management system. However, since narwhal runs under rhino, the usefulness of this command-line tool is impinged upon by the JVM's obscene startup times. I'm aware of narwhal's ability to run under different engines, but it's unclear w...

Some necessary libraries are missing in WAR-File after export from Eclipse - why?

Hey altogether, I took over a project of a college which contains some web services and by exporting the project as WAR-file some libraries are contained in the file (e.g. Axis2) and some aren’t (hibernate, JDBC driver). Also a jar which is added to the class path has not been exported. All libraries are located in folders on the hard d...

What happens If I combine multiple Javascript Libraries in a page?

Take a case, I want to use multiple javascript libraries into one page like jquery, mootools, scriptalous. Is it a good idea? Should I do ths? ...

Why use iGoogle platform

Don't get me wrong, I like iGoogle and use it. But for intranet site, why anyone would use iGoogle or Apache-Shindig which is foss implementation of iGoogle platform. OK, boss likes look of iGoogle widgets/gadgets and fact that he can drag them around the page. But you can do this with say ExtJS library. So are there any benefits o...

The lack of javascript "application" frameworks

First off, this is not a which framework is best topic. On that note let me explain my intentions. A long time ago we have entered the "experience economy" age users are expecting more and more when they visit webpages. Most web applications delivered today have some form of dynamic functionality. This translates into more interactive w...

CSS3 Javascript Library

Hi! Does a Javascript library exist that enables the usage of CSS3 properties such as rounded corners in unsupporting browsers? Thanks, DLiKS ...

RightJS javascript library in daily use.

Wondering if anyone here can offer any insight into the ups/downs of using the RightJS library, specifically as compared to jQuery, and generally compared to what you think a library ought to offer. I'm not so much looking for a feature to feature comparison, but rather a sense of the general daily use. Things like: Does it feel nat...

Javascript injection

I would like to fill out and a submit a form explicitly with JavaScript. First, I thought I had to use window.open but it's certainly wrong because if it gets loaded, the left of my scripts written for example in a html file would be ignored. Do I have to create a .js file and fire that one? ...