jquery

Get the response data into the jQuery ajaxComplete function

Hi people, What i would like to do is send the return data from any ajax call and also have it avaiable in the ajaxComplete function. So when i have a $.post or $.get or $.getJSON and so on request like this: $.post(url, options, function(DATA) { $('output').html(DATA); }); i also want to get the same data into $.ajaxComplete(...

jQuery Rollovers Not Preloading

$('.ro').hover( function(){ t = $(this); t.attr('src',t.attr('src').replace(/([^.]*)\.(.*)/, "$1_o.$2")); }, function(){ t = $(this); t.attr('src',t.attr('src').replace('_o','')); } ); I use this code so that (for examle) test.gif with the class 'ro' would change to test_o.gif on rollov...

Procastination when moving from c# code to html/css/jquery

I find when I writing non UI code on a project I can be relatively productive (working in a top down manner from the service layer), following a TDD approach, Im nearly always out of the debugger until integration, not perfect but happy enough. FYI, I work in C# with R# enabled in VS2008. However when I switch to stick a web interface ...

jQuery Cycle Plugin with typewriter transition effect

Hey, Wondering if anyone knows how to achieve a typewriter effect with the jQuery Cycle plugin. See here for desired effect: http://www.hungry-media.com/code/jQuery/tickerType/ Thanks. Dave ...

jQuery addClass question

I want to add a class to multiple span elements with common classname's based on the classname of a link that is being clicked. This works for me only for the first element (1). The rest gives no result (also no error). Here is the code I'm trying to get functional, first HTML then the jQuery part: <ul id="brancheNav"> <li><a href="...

Perl CGI::Application::Plugin:Stream + Jquery Taconite plugin - Cannot download file

Hi, I am using the Stream (qw/stream_file/) Plugin for CGI::Application within a runmode to read a file from the filesystem and stream it back to the user. The user clicks on a link whose "id" attribute I use in an ajax call using Jquery to fetch the file (/?mode=get_file&fileid=<someid>). I am also using the Jquery taconite plugin to...

Problem setting equal heights with jQuery in IE

I have several of the same class of element on a page and am attempting to get them all to be the same height even though the content within varies slightly. I've put together a small function that yields results in both Firefox 2+ and Safari 3+ but apparently doesn't even register in IE 7. Here's what I'm using: var tallestcopy = 0; ...

jQuery - use canvas to draw lines between divs

I have n <div>s, each with <h1> title and <ul> list of items in. I would like to float these over a canvas and draw lines from <div id="x"> list item y to <div id="z">. I am using jQuery UI to make the <div>s draggable. The canvas element is part way down the page (a paragraph of text and some form elements precede it) but I can change...

How to assign event callbacks iterating an array in javascript (jQuery)

I'm generating an unordered list through javascript (using jQuery). Each listitem must receive its own event listener for the 'click'-event. However, I'm having trouble getting the right callback attached to the right item. A (stripped) code sample might clear things up a bit: for(class_id in classes) { callback = function() { this....

What is the difference between the mouseover and mouseenter events?

I have always used the mouseover event, but while reading the jquery documentation I found mouseenter. They seem to function exactly the same. Is there a difference between the two, and if so when should I use them? (Also applies for mouseout vs mouseleave) ...

Jquery not working in Ajax calls

I have been trying to make ajax calls with Jquery. When doing so,I miss out the Jquery corners and scroll functionality doesnt work. But the same functionality works fine without Ajax calls. Can anyone provide a solution to this. My application is in Ruby on Rails and my Ajax call in ROR is as follows. (link_to_remote "tabname",:url=>{...

Table doesn't respond to second jQuery request

Hi All My PHP script generates a table with rows which can optionally be edited or deleted. There is also a possibility to create a new Row. The PHP is activated through jQuery Events. Now all works well, I can edit delete and create an Item. After each action which makes use of the PHP script the HTML table gets updated. But when I ...

Leading zeros on JQuery Countdown Clock plugin

Hello, I'm using a JQuery Countdown Clock plugin from here. Unfortunately I need to have leading 0 where there are single digits. For example 1:1:22 should display as 01:01:22. Can anyone help with this? Thanks ...

Using JQuery to display database information on a hover

Hi guys, I'm trying to something with JQuery similar to Red Box. I'd like to be able to hover over an entry in a table, and then have a box popup that displays information about that entry pulled from a database. What I have so far is the ability to select specific elements in the table, and alert when I hover over those elements :) So...

javascript selectlist remove all options

I have a <select> list which has been populated with several options, but want to remove those options to start again. I am using Jquery, and have tried: $("#selectId").length = 0; but this seems to have no effect. Part of my problem is that I am using firebug to debug, but the code does not break at the breakpoint, so I cannot s...

Looking for "day view" javascript library/plugin/calendar

Hi all, Our project seeks to render calendars similar to outlook's web view (i.e. where you can view a calendar in 'day', 'week', or 'month' view). To clarify: we do not need 'date picker' functionality (i.e. used by the out-of-the-box jquery UI calendar plugin). At this point I've found jquery plugins to render a calendar in "month vi...

jQuery UI 1.7.2 - Opera issue with Form dialog .

We are using jQuery 1.3.2 and jQuery UI 1.7.2 in our project. Everything was working perfect till we were using jQuery UI 1.7.1. Then we upgraded to jQuery UI 1.7.2, but it is causing a trouble in Opera (9.63). The issue is as follows :- There is a jQuery UI dialog with a textarea and a submit button which posts the data in "textarea" ...

How do display a var with json and jquery?

Here's my code, its based off the flickr example, as I am trying to learn how to use JSON. My Question: How do I get the var title to show up correctly in HTML, I am still new to programming trying to teach my self. I am getting [object object] which I think means its not a string. Not sure how to write it as one, probably really simpl...

How can I get a css position change to take effect during a JQuery UI Draggable element's start event handler?

I have an odd situation in which I need to modify the position of a draggable element as soon as the user starts dragging it. So, during the draggable element's start event handler, I'm trying to set the position. It doesn't respond to the position change unless - and this is weird - I do something to cause a javascript error after I cha...

How can you act only on those elements that are in a particular view state in JQuery?

I have a class that I need to perform some actions on but I only want to perform the action on those elements of the class that are currently shown. For example, this code hides all elements of the pie class, whereas I only want to effect the elements that are currently shown and not act on the ones that are currently hidden: $(".pie")...