jquery

Fire a jquery loop to iterate before animation callback is complete?

I am trying to make a sequential animation, where a loop iterates through a list of elements .post's and fades them in slow. The difficult part is having it so that the next iteration begins fading in before the last one has finished fading. All I have so far is a simple sequential animator that fades them in one after the other. $(".po...

jquery animated menu: how to get active state

Hi, please can you help a jquery beginner out? I don't really know how to go ahead... I did a jquery animated menu: look at this. the content loads with ajax, so there's not really a page load. now i have to do the active item part. to give a clicked item a class "on", I did this: $navig.click(function() { $(this).addClass("on"); ...

Why is Jquery linking this websit has the different effects with chrome addClass ,ff from IE7?

the problem is Why Jquery linking this websit has the different effects with chrome addClass ,ff from IE7, the website is (http://static.geewax.org/checktree/index.html). With the Brower Chrome/FF,we can get the normal effect ,get we want,but with the IE7,the effect is different,the checkbox image is disappear,why? The website achiev...

JQuery.post() callback function called in 1.3.2 but not in 1.4.2

The callback function of the JQuery.post() is called with JQuery 1.3.2 but not with 1.4.2. Tried to find what changed between the versions without successs. <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script> <script type="text/javascript"> function f() { v...

Stop duplicate mouse over detection

I have a popup that is executed on mouseover with jquery. Within that function I have a second delay before the popup displays using settimeout Problem is if in that second they mouse over multiple times then multiple popups are triggered. $('#div').mouseover(function() {setTimeout("popup()",1000);}); What I need to do is disable th...

Generating gradients from a hexcode or RGB in PHP/jQuery?

Hello, I'm trying to figure out how to write a function that programmatically retrieves a background-color css attribute and creates two outputs (one slightly darker than the background-color, one slightly lighter). The idea is being able to generate a very basic linear gradient from a single color selection. Anyone have any ideas? ...

JS doesn't work in IE. The background image seems to repeat imperfectly.

Hello! I have a JS module called "Cloud Zoom." It works quite nicely except in Internet Explorer. But the example on Cloud Zoom's page works in all browsers! What am I doing so terribly wrong? My example. Works in all except for IE ...

jquery bind button click event fails

test.html: <html> <head> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript" src="test.js"></script> </head> <body> <input id="but2" type="button" value="2"/> </body> </html> jquery-1.4.2.js is downloaded from http://jquery.com/ test.js: var fn=...

Passing data to server and updating asynchronously

Basically I have a site where I want the user to input something, have it go to the server for processing and then return it asynchronously, load the contents into a div and then fade it in with jQuery. What is the best way to the do accomplish this? Currently here is my "solution": $(document).ready(function () { $('#output-box')....

MySQL -> PHP -> JS/jQuery

I'm a bit confused about displaying data from a MySQL database. I would like to make a single $.getScript(''); request to grab point values if possible, but my trouble is getting it to work with multiple members. I need to grab the point values for each user by their ID number. (this is for a forum software- ZetaBoards.. basically a poin...

As basic as possible: jQuery Contact Form

I'd like to create a very basic contact form. I've got the HTML, Javascript, and PHP written using what little knowledge I know of the language, but it apparently doesn't work. What's missing? The HTML: <form> <fieldset> <fieldset> <input name="name" value="John Doe" size="30" /><br /> <input nam...

How to automatically increment text value on sequential inputs

I have this unordered list which contains some inputs, what I want to do is to type a value on the first input, like "1", then all the other inputs, in order, gets 2, 3, 4, 5 ...

Using jQuery to change image map coord values

I have a pretty complex image map that I would like to shrink by half. To do so would require dividing all the coord values by 2. Since there are thousands of coord values, I was thinking that I could use jQuery to traverse the DOM to find the coord values, and divide them by two. I'm pretty amateur when it comes to JavaScript and jQuery...

jQuery/JavaScript: How can i do this two-smart-page sign up model

Please check this site, while I am explaining: http://www.dkbn.dk/ Now this is the part of the site that i want to make something alike: This is a signup form. Now they have spliced the form up in a cool way, I mean if you try to fill something in the fields and press "Fortsæt" (Next in English) then without updating the page, the si...

CKEditor Freezes on jQuery UI Reorder

Hi Everyone: I am attempting to reorder a dynamically created list of CKEditors using the jQuery UI framework, but I am having an issue with the editor freeing. It worked perfectally when I was just using a <textarea>, but now, after the dragging action completes, it doesn't let the user write any text. This is the Javascript code: $...

How to convert selectors and event capturing from jQuery to plain JS?

Can someone please help with converting this code to plain JS: $(document).ready(function() { $("textarea").bind("keydown", function(event) { var textarea = $(this).get(0); //further will need only textarea and event vars } }); I don't care about cross browser compatibility as long as it works in curr...

how do i have a facebook-like scrolling updates on my website showing all activity

i have an asp.net mvc website with a SQL server backend. For every table i have a "History" table to track all changes (who, when, etc). I can run a query and generate an audit report (view of what has changed including who, when, etc) but i wanted to try to implement a facebook style view that shows a list of updates (instead of a sta...

Update select multiple

I'm trying to write a function to update the "multiple" select (the second one below) such that when I select Method1 (from the first select), only the options 1A, 1B and 1C appears in the second select, and likewise for 2A, 2B... only when I select Method2. Is there a way to do this. Please help. Many thanks in advance. <select name="...

number formating problem in php and ajax

i have one text box formated with follwoing syntax $("#cont_dt").blur(function(){ $(this).format({format:"#,###.00", locale:"us"}); }) this work fine, for example if i type 250000.50 it automatically formated to 250,000.50 but the problem is when i try to pass same value to php file via ajax to add recor...

jQuery Get the second or x div with certain class

This should be simple, but I can't figure it out For example, lets assume the class .contentdiv is what were searching for. I want to obtain (or select) the second or (x amount) .contentdiv in a document then get the html of that div. x being the div i want to select so pretend x is 1,2 or 3 or any number jQuery('#slider').filter('.c...