javascript-library

Javascript framework freezes in Firefox Ubuntu 8.04, don't know what to blame

I learned web applications in the old days before there were Javascript libraries and web application frameworks. When I find time (which might not happen), I wouldn't mind updating my experience with these more modern methods. However, if I did write a web page with one of these modern packages, I wouldn't want to slam together someth...

Create div dynamically with options for the selected object

I have a component that is draggable, and would enable the option to select when you show a little div on one corner, with some options (delete, new). Well, I'm trying to see some components some programming to do that, and unfortunately found nothing practical. There are some library but has a size gigange (versions with 112KB min.) so...

Are there any Javascript graphics libraries that support visio-like diagram creation and editing?

I am thinking about creating a website that as part of its functionality will allow users to create visio-style diagrams. Are there any Javascript libraries/frameworks that already provide this functionality? Or libraries/frameworks for other in-browser technologies such as flash, silverlight etc? I know there are lots of graphic libr...

Elastic lists in Javascript

I recently came across Elastic Lists & found them totally cool. Is anyone aware of a javascript library which can give me elastic lists ? If not , any tips on writing it myself too would be most welcomed. :) Thanks, ...

Is there a Calculus library for JavaScript?

Does anyone know of a Calculus library for JavaScript? I've done some Googling and haven't come up with anything. I applied for the WolframAlpha API, but that's expensive unless they choose to give me a grant. Ideally, I could feed an Array of 2d points into a function, and get back the graph (Array) of points of the derivative. If s...

Why Array.length does not work with key string

I've been reading and doing some testing and found that the command. "Length" of the Array () javascript does not work when the array's keys are string. I found that to run this command, I use whole keys. However, I wonder if any of you can tell me why this rule? Limitation of language, or specification of logic? Or, my mistake ...? Th...

Any JavaScript Library that makes CSS3/HTML5 website work on all browsers, including IE6-8?

Is there any JavaScript Library that makes CSS3/HTML5 website fully work on all browsers, including IE6-8? Latest eCSStener and Modernizr does not make CSS3 work on IE6-8. ...

What Browser-side Javascript Module Loaders are production-ready?

I'm working on a large web application with many javascript files. I'd like to turn those into CommonJs Modules to make dependencies explicit. What browser-side loaders exist for CommonJs modules, and what are their limitations? Browser targeted CommonJS loaders that I can find are Tiki and Yabble. Has anyone tried them, and how well do...

Mootools: How to Disallow `var drag` depending on `checkbox` checked?

Mootools: How to Allow and Disallow var drag depending on checkbox checked or not? window.addEvent('domready',function() { var z = 2; $$('#dragable').each(function(e) { var drag = new Drag.Move(e,{ grid: false, preventDefault: true, onStart: function() { e.setStyle('z-index',z++); } }); }); ...

Mootools: How to get `morpha.start()` after 2sec `mouseenter`?

Mootools: How to get morpha.start() after 2sec mouseenter? window.addEvent('domready',function() { var morph = new Fx.Morph('resize',{duration:700,delay:400}); $$('#resize').addEvent('mouseenter',function(e){ e.stop(); morpha.start({ width: '200px', height: '100px' }); }//It does not work on adding ',2000' he...

Mootools: How to Disallow `mouseenter` and `mouseleave` event when checkbox checked?

Mootools: How to disallow mouseenter and mouseleave event when checkbox checked? window.addEvent('domready',function() { var z = 2; var e = document.id('draggable'); var drag = new Drag.Move(e, { grid: false, preventDefault: true, onStart: function() { e.setStyle('z-index',z++); } ...

Are the any Guidelines to Create Inputmasks in Javascript-

I want to create different inputmasks like Date Input mask in Javascript. What will be the best way to create masks. (Without any Framework!) Thanks ...

last element of array in javascript

Its kinda weird Javascript Array class does not offer last method to retrieve the last element of array. I know the solution is too simple (Ar[Ar.length-1] ) but still this is too frequently used. Any serious reasons why this is not incorporated yet? ...

How to identify browser tab closing using javascript or jquery?

How to identify browser tab closing using javascript or jquery? I have to give a confirmation message when user click on the browser close button. If user press yes button I have to load another page on the same tab. if press cancel. then close the tab. any body knows the scripts for this functionality. Please help me :( ...

Great animation engines for Javascript? - Javascript/Animations

Hi folks, I'm trying to implement a timeline based animation, where animations will be able to be: paused resumed fast forwarded slowed down reversed ... Are there any animation/tweening engines for Javascript that could be used for such purpose? Or that would be highly recommended? Hwlp would be great, especially as this really ...

JavaScript Handler Calls - How to Implement this Structure?

Hello, Not sure what to call this post exactly. I want to mimic a structure I've seen in Facebook, but I'm not actually using Facebook, this was a good example. I remember from using the Facebook API that it had a method that did: FB_RequireFeatures(<key>, <handler>) This method essentially said if the feature was ready to go at the...

What's causing my HTML elements to appear with tons of inline JavaScript? How can I stop it?

I'm currently working on a page that uses a HTML wrapper supplied by the client. We inject our content into the wrapper and then render the page. This wrapper links to other JavaScript libraries. When I inspect the element, I can see that one of my elements has been modified to appear as the following: <li class="directory-result-text"...

arguments.lenth works but not argument[0].value

I am trying to get a value of the response I check arguments.length and it says 1 and works but when I do arguments[0].value or arguments[0].responseText it doesnt work...it says undefined....how do I get the values? ...

testing for undefined in JavaScript

I want to run a code only if the argument[0].recordCount is greater than zero or is NOT undefined. However, the code is ran when the argument[0].recordCound alert shows undefined. if(arguments[0].recordCount > 0 && arguments[0].recordCount !== 'undefined') { //if more than 0 records show in bar document.getElementById('totalRe...

easiest way to pass the data in javascript

I have x = 65; in a javascript page /var/html/pag1.js and I want to pass x to a different page: /var/html/user1/pageUser.js What's the easiest way to send a value like that? Thanks. ...