javascript

Gantt Chart - JavaScript / JSP / Java / Groovy / Grails

I'm looking to add the ability to create a gantt chart to my web application. Currently my application is Grails based running on Tomcat. Research around SO seems to indicate that JFreeChart (http://www.jfree.org/jfreechart/) and Google Charts both might provide me with the ability to create charts that I could mold into what I need. B...

Shoud these two JQuery functions produce the same behavior?

Assuming I have the following two JQuery functions - The first, which works: $("#myLink_931").click(function () { $(".931").toggle(); }); and the second, which doesn't work: $("#myLink_931").click(function () { var class_name = $(this).attr("id").split('_')[1]; $("."+class_name).toggle(); }); I want to replace the first with...

Javascript If Statement for Text between two Tags

Hello: I am trying to write a javascript function with an "if" statement that will execute a command if the text between two tags match. I have been able to write many "if" statements in which a command is executed when the value within an input textbox equals that of the "if" statement criteria such as: function Test() { if (docu...

Where do I put javascript in ContentPlaceHolder?

I'm using a ContentPlaceHolder and would like to move the onload="Carousel()" from the body tag of of the .master page body onload="Carousel()" but I don't know where to put it in the content page. I'm trying to implement this http://www.dynamicdrive.com/dynamicindex14/carousel.htm ...

How can one programmatically reorder Handler Mappings in IIS7?

We have an installation that creates a handler mapping for a website. Using the IIS7 Admin pack, I've come up with some jscript that sets this up successfully. However, our developers have the requirement that this particular handler mapping be at the top of the ordered list of handler mappings. I discovered that you get to this view ...

Scrollable HTML table with top row and left column frozen

Has anyone been able to implement a scrollable table in HTML where the TOP row and LEFT columns are frozen, but the rest of the table is scrollable? A perfect example of this is: Google Squared I tried to reverse engineer the code for the google squared table, but I have been unsuccessful so far. Note: I need the ability to FREEZE the...

document.getElementById("tweetform").submit is not a function?

Hello all, I am using Firefox and I've been reading some forums claiming this doesn't work in firefox but it has been working for me for the last few days but has stopped working and I can not figure out why. I make a AXAX POST Request using an IFrame. When I get the response I use this: function startLoad(){ $.get("update.php", f...

JSTL and Javascript

Is having tags inside a jstl tag considered bad form? So for example I know the following will work but is it considered bad form to have the script tags inside my jstl tags in my jsp ? <c:choose> <c:when test="${!empty bean.value}"> <p>Its not empty</p> </c:when> <c:otherwise> **<script> callJSSomeFunction(); ...

Adding a search by zip code in a custom Google map

Hello, First I would like to say that I am new to this site, never worked with Google Maps API and have an intermediate knowledge of JavaScript. What I have done: I put together a custom 'store locator' by adding locations to a Google 'my maps'. I then created a web page with a drop down menu and depending on the location you select f...

Robust Javascript Exception Handling

I am developing a DHTML/Javascript application which relies on some advanced features (DOM manipulation, AJAX, Flash communication, and more). I'm very concerned about functionality -- if problems occur, even after the application is deployed, I want to make sure I know why and how to fix them -- and also, I want to make sure the user is...

Dom book which introduces DOM as much as possible?

I want to read a book that systematically introduces dom with live examples. Any recommendation? ...

What are the Advantages and Disadvantages of JQuery and Glow JavaScript Libraries?

Can anyone give a comparison of JQuery and the BBC's Glow JavaScript libraries? ...

hide/show not working properly with jquery

Hello, I have a page with three rows of main information that all have a 'More Info' button attached, sort of like wefollow.com and their info button. When the 'More Info' link is clicked a <tr> with a class of "mi" slides down above the main info. The problem that I am getting is hiding the <tr> before the 'More Info' link is clicked...

How to get the top position of an element?

Is possible with javascript/jquery to get the top position of an element? The element is a table, if that matter. ...

IE8 CSS Bug? Not displaying DIV correctly with javascript

This video explains the problem best: http://www.screencast-o-matic.com/watch/cQ1Oc9f1L Basically the directory is located here: http://www.ipalaces.org/uploaderprogress/grrrrrr.html Is the problem piece using YUI.js as the uploading script. The YUI updates the table's row with new information on every event. So I have it update it wit...

Javascript toSource() method not working

I'm getting a "Object doesn't support this property or method error", does anyone know why? I do have values plugged into userId, fname, lname, oname, sam, hasAccess function Employee(id, fname, lname, oname, sam, access) { this.id = id; this.fname = fname; this.lname = lname; this.oname = oname this.sam = sam; ...

Recurrent "Unresponsive Script Warning" on Firefox on one machine

Hello, I have developped a PHP system that is using Javascript with the ExtJS library, which provides graphic components in Javascript. So I have a grid which is refresh every 3 minutes by an AJAX call which reloads the grid. Everything works fine on all computers, except for this one computer where, once in a while when reloading th...

javascript, howto use setTimeOut to invoked obecjt itself??

hi, the code below..why i can not use the setTimeOut within an javascript object? Message = function () { ... ... this.messageFactory = ... this.feedbackTag = document.getElementById('feedbackMessages'); this.addInfo = function (message) { var info = this.messageFactory.createInfo(message); // crea...

JavaScript regex exec takes too long to execute

Hi, I've got a simple JavaScript regex check (written by other developer) that works perfectly on thousands of different strings. However I've just discovered one particular string value that's causing that regex to take as long as 10min to execute in Firefox/IE which is unacceptable. I've extracted an actual regex call into small code ...

Can I put a link inside a title attribute?

I'm using the jQuery Fancybox plugin to create a modal window with the link's href as the content, and the title as its caption. I'd like to be able to have a clickable link in the caption (in this case to lead to a larger map) but I can't put an <a> tag into the title attribute. How might I go about putting this link in through Javascri...