javascript-framework

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...

Settimeout and setinterval memory usage

Hi Everyone, Does any body know the memory usage and possible memory leaks with javascript functions settimeout and setinterval? Thank you, Krishna ...

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 ...

TabPanel Internet Explorer Problem

Hi, I have a TabPanel where each tab is a ManagedIFrame. A dark blue block (below the tab panel) as shown in the image gets added whenever a new tab (also a maangediframe) gets added. It happens only in IE 8. It does not happen in Firefox. Any suggestions? image: http://www.sencha.com/forum/attachment.php?attachmentid=21712&d=128034...

Get epoch for a specific date using Javascript

How do I convert 07/26/2010 to a UNIX timestamp using Javascript? ...

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 ...

Why use "//-->" in javascript

Hello All, I've seen this tag used after javascript functions for over a decade now and never asked WHY. It's seen in most of the tutorials I've seen over this time, but I usually leave it out... it doesn't seem to have an effect one way or another. Can anyone enlighten me as to why this is used? If it's just to signify the end of ...

Accessing elements created on-the-fly jQuery?

i am using this gallery plugin but i can't access the elements created on-the-fly by the plugin. what can i do?? Thanks folks!! ...

Using Prototype JS on pages that use jQuery

I am revamping a website that now uses jQuery. The process is more than half way done but for the time being I need to setup a demo as soon as possible. For this I will copy existing ASP code as-is and these particular pages require prototype plugins. Converting all prototype plugins to jQuery is in the todo list. So I am wodering if the...

Learning YUI from scratch

Hi, I am new to YUI and I want to learn it from scratch. Can you suggest some books or tutorials? Where should I start? It seems YUI 3 is different from its predecessors. Please help me. ...

jQuery, Web Application Framework?

For the longest time I've used jQuery to hack together web sites. Now I'm interested in making a web application (one page load for the entire site to function, like Gmail). Are there any jQuery Frameworks or practices that I can leverage to build my application so I don't have to recreate the wheel, or hack something together as I go? ...

Is Plain vanilla Javascript better than using frameworks like jQuery/mootools ?

Hi All, I am wondering if it is a good idea to rely on frameworks like jQuery/mootools or should we just use plain javascript ? Apart from avoiding the re-invention of wheel, do they add any specific value ? Since the frameworks are open to public, can there be possibility of exploitation of any security holes that might appear(of cou...

Twitter Hovercards in GWT PagingScrollTable

How do you implement Twitter Hovercards in GWT PagingScrollTable? The Hovercard links work fine when, say, I add new Label("@ded") to a HorizontalPanel. However the Twitter JavaScript function doesn't seem to apply when I put "@ded" into a PagingScrollTable row. I'm a JavaScript newbie. In response to Igor's request, here's some more...

Ajax talking to java webservice - example? JSon, JQuery?

Hi, I've been tasked with making an Ajax (scriptilicious and prototype) front-end 'talk' to a web service. It's been recommended that I use Json and JQuery. I have no experience (Java developer) with either of these technologies. Can someone point me to some documentation or preferrably a tutorial on how to go about creating the 'glue' b...

Calling one method from another in JS

I have the following snippet of JS var Customer : function() { this.ShipProduct : function() { //Logic for shipping product. If shipping successful, notify user //Here I am trying to call Notify //this.Notify(); // does not work } this.Notify = function() { //Logic for notify } } How...

how to select all class except the clicked element in JQuery?

Hello Everybody, I have a website developed on Drupal. I use a module called collapsiblock (it is basicly a JQuery plugin) to achieve accordion like effect. It is working fine with me (although it is in Beta). But I want to modify it so that when the user clicks on one item of the accordion the other items will collapsed. In its curren...

jQuery Selector Problem?

I am using the hover function for mouse over in a menu. I have selected a particular element using it's class. To make changes to only that element and not all the elements with that class I can use 'this'. But I wanna make changes to the h3 tag inside that class element. Again the one I have hovered on and not all elements with that cla...

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...

Defining Functions In Javascript Within jQuery

Hi, I'm working on a proprietary site, and I'm having some issues. I'm using jQuery along with prototype, and I've got it namespaced properly, so in this question assume you can use $ or jQ as a namespaced reference to jQuery. So I've got a bunch of functions, some mix jQuery and javascript, some plain javascript, some jQuery only. N...