jquery

Drupal 6: onkeyup event to a custom form field

How can I add a onkeyup event to a custom form field in Drupal 6? ...

Drag-Drop in a table

Hi All, I have a page which has a table with lots of rows and columns. I'm dragging and dropping an element in one of the table cells. Once dropped I want to reposition the element inside the cell properly so that it is aligned with the table contents (like placed in the corner of the cell, or if other elements are present, then place i...

jQuery Countdown plugin not accepting time as well as date

I'm using the jQuery Countdown plugin but having some trouble getting it to show the right countdown. I want to countdown to a date and a time, but everytime I add the time to the Date string, it stops working. This works: var openTime = new Date('2009,09,25'); $('#countdown').countdown({until: openTime}); But this doesn't: var ope...

How do you begin building a firefox addon that alters/replaces the default download feature?

I want to write a firefox addon that replaces my current default download feature. I basically just want to add other options to the download window that will allow it to interact with my website. Where do I get started with this? Does anyone know any code I can get started from? I'd rather not build the entire download from scratch, i...

Ajax upload (valums.com)

Hi, I found an excellent script over the internet for styling file upload (http://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htm). And it works perfectly for me in IE, FF. But there's a problem with Chrome 3, which I can't figure out how to fix... Problem happens in this event handler: addEvent(iframe, 'load', function(e){ ...

jquery: when does $("???") scan the whole DOM?

When using $("#xxx") I guess under the hoods jQuery uses getElementById. What about $(".xxx") does it scan the whole DOM every time? ...

jquery firing issue

I am using a function to equalise the height of li tags returned from a database. I am also using jquery to assign certain li new classes dependant on their position in a row. Basocally my problem is that the positioning part of the jquery statement always works but the equal heights part will sometimes not fire, in fact it generally do...

Simulate Keypress With jQuery

Hello, Using jQuery, how can I simulate (trigger?) a KeyPress when a link is clicked? For example, when a user clicks the following link: <a id="clickforspace" href="#">Click Here</a> Then, by clicking the link, it would be as if they pressed the "spacebar" on their keyboard. Something like this, I'm assuming: $("#clickforspace")....

Making DiveIntoPython3 work in IE8 (fixing a Javascript performance issue)

I am trying to fix the performance problem with Dive Into Python 3 on IE8. Visit this page in IE8 and, after a few moments, you will see the following popup: I traced down the culprit down to this line in j/dip3.js ... find("tr:nth-child(" + (i+1) + ") td:nth-child(2)"); If I disable it (and return from the function immediately), th...

Firing Server Side Event from jQuery - __EVENTARGUMENT Does not Exist

I am trying to fire a form submit via jQuery and have a particular server side event fire. Client Side Code: $("input[name=__EVENTARGUMENT]").val("SomeArg"); form = $("body form"); form.submit(); Server Side Code: protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { if (Reques...

jQuery dialog box not opening 2nd time

I found this thread which basically has the same issue I have. But their solution is not working for me. The dialog appears the first time I click the submit button, but not the 2nd time. I'm opening the dialog box after a form submission. UPDATE I finally got it working. Here is the correct code: if (jQuery('#registrationforms')....

implementing data grid using jquery

I need to read data from a csv file & display it as a data grid.The csv file contains name value pair i.e. column A will contain name & column B will contain its value.Also the user can add a blank row to the end of it & insert data manually by clicking on an add button.The user can select any row & delete the row completely by pressing ...

getJSON Callback Not Firing

I'm learning asp.net mvc by working on a test project including SubSonic and jQuery. The problem that I'm encountering is that every time I want to return something more than a simple string, like a Json object, I get stymied because callbacks don't seem to fire, or come back as failed. My method to get a list of jobs in the database: ...

jQuery Top Right Corner Page Flip

Hi, I am after a plugin similar to this: http://www.jquery.info/scripts/jFlip/demo.html Specifically the second example but I actually do not want the whole page to flip - I just want to show a bit of info at the top right hand corner so only want the flip to come down only about a quarter of the way. Can anyone help with example site...

Question about converting a simple function to JQuery?

Sorry if this is a stupid question, I have a javascript function like: Test.prototype.createElement = function() { this.oCanvas = document.body; var oDiv = document.createElement('div'); oDiv.style.position = "absolute"; this.oCanvas.appendChild(oDiv); return oDiv; } While converting this function to jQuery, I did this: ...

What is the difference between having a function in Jquery.Document and not having it in.

Hi I am just wondering what is the difference between these two File1.js $(function() { function MyFunction() { // some code here } }); File2.js $(function() { // call it. MyFunction(); }); File1.js function MyFunction() { // some code here } File2.js $(function() { // call it. ...

Help with jQuery Validation plugin and a form that uses 'panels'

I have a form that works in 'sections' that I will refer to as 'panels'. By default, the form is listed out on the page, one panel after the other. However, with JavaScript, it puts the panels into one panel viewer, and displays them one after the other (with prev/next buttons). Example Form Workflow Panel 1: User Details -> Panel 2: ...

how can i get stackoverflow's orange overlay at the top "First time here? Check out the FAQ" with the X button ?

how can i get stackoverflow's overlay that appears at the very top ? when i scroll up and down, it is very smooth. how do i do this with jquery ? ...

jQuery dragging divs selected text

Hello, I'm using jquery to make a few divs draggable on a website. My code is similar to this: $("#thediv").bind('mousedown',function(){ $(document).bind('mousemove',function(ms){ //drag }) }); The problem is that if the mouse is too fast for the div, the mouse goes outside of the div. This selects random content on the ...

How to find the first ancestor node whose tag is <tbody> with jQuery?

Suppose the jQuery object is $obj,how to select the desired ancestor? ...