javascript

Tooltips (title="...") won't show in Firefox

I have an element with a title attribute (ie, a tooltip), wrapped in some container: <div id="foo"> <input type="text" title="A tooltip" /> </div> and I attach a "mousemove" event listener on the container and stop event propagation: document.getElementById('foo').addEventListener( 'mousemove', function(e) { e.stopPropaga...

Makefile which compresses javascript

I want to compress javascript in yui compressor, How to write Make file for compress javascript. Because grammar is difficult and does not understand it, Could you give me a sample Makefile for me? ...

What does this snippet of Javascript do?

$.post("", {message: msg}, function() { ...

Escaping double hyphens in Javascript?

I have a Javascript bookmarklet that, when clicked on, redirects the user to a new webpage and supplies the URL of the old webpage as a parameter in the query string. I'm running into a problem when the original webpage has a double hyphen in the URL (ex. page--1--of--3.html). Stupid, I know - I can't control the original page The javas...

How to insert my web page into an iframe?

Hi, I have a web page that I am hosting for a client. The page has the client's header and footer on it and our content (a flash app) placed in the middle. The client now wants to provide us with an html page that contains their header, footer and some ads all in one document. They want us to include this document as an iframe and then...

Equalize column javascript not working in Chrome

Hi, I'm using this mootools javascript snippet to equalize the height of my columns: window.addEvent('domready', function() { var columns = $$('.equalize'); var max_height = 0; columns.each(function(item) { max_height = Math.max(max_height, item.getSize().y); }); columns.setStyle('height', max_height); }); Prob...

Example of JavaScript observer pattern

Can anybody send me the good links of the observer pattern in JavaScript? ...

Adobe Air Questions/Resources

I recently became quite interested in developing an adobe air application, and just had a few questions that maybe some more experienced air developers could answer. Firstly, what is the average time-frame required for an air project. Mainly I'm planning a somewhat ambitious project of porting a specific forum framework over to an air a...

anti pornography image uploading

Possible Duplicate: What is the best way to programatically detect porn images? Im currently working on a site were i would like to offer the users to freedom to upload images to be displayed on said site. The problem is i dont want pornographic images to be displayed. i know google and other sites are already using some sort of...

jQuery not register $

Hello, I am using prototype + jquery on a site. Now the prototype plugins use $. I do not want jQuery to use $. How do I make jQuery not register the $. Also, how do I then call jQuery functions. Thank you for your time. ...

clipboard image send to email

how to clipboard image send to email using C#.Net with java script web application ...

Javascript AOP libraries

Which Javascript AOP library do you use, and what are its key features ? ...

Gantt Chart online

I need to insert a horizontal bar chart in a web page. The thing I have to do is very similar to a Gantt Chart. I'd like to use a javascript library for the purpose. I tried jsgantt, but actually it is not very beautiful. I could evaluate also a server generation of the graph. In case my server side language is Python. It will be part...

Programatically include JQuery in high conflict environment -

I'm writing a snippet of code to be put on any third party website and have NO idea what environment it will be dropped into. My end goal is for the badge to be <script src="http://example.com/js/badge.js"&gt;&lt;/script&gt; I would like to use jQuery in my badge code to make my life easier, but I don't want to require another includ...

how to execute multiple animations simultaneously in mootools?

I have two divs (say, divs with ids: div1 and div2) whose height I need to expand using Fx.Tween And I want the animations to be simultaneous. '#div1' 's style.height is to be changed from auto to 0. '#div2' 's style.height is to be changed for current height to a new height calculated by a function called calculateHeight() how do I do...

searching equivalent function/way to "list()" from php

hello, i'm searching for an equivalent function for php's "list()". i'd like to split a string with "split()" and put the array values in two different variables. hopefully there's another way to do this as short and performance-optimized as it could be. thanks for your attention! ...

adding label from javascript

hi , i am trying to add a label from javascript but im getting error what i did was: document.getElementById(option).innerHTML="<label onclick='updateInfo('edit','qualification',"+data_id+","+data+")>"+data+"</label>"; what am i doing wrong ? ...

Should I use JSON or AJAX for response data?

Why JSON? I have done some tests today, and the request time for both JSON, or a normal AJAX request was the same. In the "normal request" I have returned the complete text+html tags, in the JSON request, logically I returned a "json return type" and I have created the HTML with client-side JavaScript. I don't get it, why are the big si...

What is the disadvantage of DWR?

While using DWR in a intranet, will disadvantages like perfomance or security issues occur? Direct web remoting is a tool which uses Ajax request to contact a server from a js file. ...

Specifically Don’t Replace Certain Text - not working

Hi! First of all, I'm using sIFR3, r419 (I can't upgrade since I don't have access to flash...). I got a webpage where I've replaced all existing H1, H2 and H3 with sIFR - that works like a charm. But I would like to use the YUI Rich Text Editor. The thing with that editor is that it also uses H1, H2 and H3 in it's toolbar thing. Those ...