jquery

JQuery and radio button help

I have data being imported from a database and I would like to represent that data in a set of radio buttons. If the value in the database is 1 the "customer status" should show the "active" radio button else show the "inactive" button. I don't know much at all about JQuery but am learning day by day so any detailed help offered would b...

JQuery submitted values for checkboxes are undefined

I just received some really great help today with a prior jQuery problem and figured since my luck was running that maybe I could also get some help with some checkboxes. Can someone please tell me what I am doing wrong? Thanks! The checkboxes are correctly echoing the database bool values but when I submit the changed values, an alert...

Set a different id for every new element in the callback off the load event

edited my original question The problem is the same for setting the id off a newly added element or if I use the argument noteid from the function. The result is that every element get's the same id if this function get's looped. How can I set a different id for every newly added element??? As it is now, the value in the submit event...

JQuery table w/ sorting

There are all kinds of JQuery widgets that offer some nice features like sorting by a columns (like http://tablesorter.com/docs/ or http://www.datatables.net/) I haven't found one that integrates with server side sorting though. I have the following requirements: sort by clicked column (server side sort) filter by a text field over e...

JQuery resources

Are there any good resources that anyone can provide with regard to jQuery? Also, I would like to know if in-depth Javascript knowledge is required to develop with jQuery. I have heard it said the developers do not need to have any JavaScript knowledge to use it but I have not had that experience and was wondering if I was missing someth...

How to disable submit button in jQuery if form fields have not been modified?

I have a HTML form that contains text fields, checkboxes, radiobuttons and a submit button. I'd like that submit button is enabled only if contents of fields are modified. Now here is the catch: if the user modifies field contents back to original values, the form button should be disabled again. Original field value "foo" => submit b...

jQuery - checkboxes like radiobuttons

I have group checkboxes and I like if this group have behaviour like radiobuttons with same name atribute. Each checkbox has different name. Only one can be chosen from checkboxes. How I can do this? Solution Why I need this? Because we need consistency webUI. Please, this is not question about our application architecture. :) HT...

How do I go about getting the Ajax Queue plugin working in jQuery 1.3?

I have an app that sends multiple Ajax requests simultaneously. I was originally running into race conditions until I discovered the jQuery Ajax Queue plugin, which works great with jQuery 1.2, but fails with jQuery 1.3. There are actually two different versions of the plugin; I am currently using this one which is the same as the first ...

$.ajax() methods data

Hi, I m having some div tags which onchange i want to insert the new value into my database.. As people suggests , i m using $.ajax POST to insert ..SInce i m new to JQuery and Ajax..I dono what actually that data and msg in $.ajax()..Please suggest me how to insert my value to database asynchronously....(on the Fly) ...

json sorting question

I have a very simple json object like the following: ({ "people": [ { "f_name": "john", "l_name": "doe", "sequence": "0", "title" : "president", "url" : "google.com", "color" : "333333", }, { "f_name": "michael", "l_name": "goodyear", "sequence": "0", "title" : "general manager", "url" : "google.com", "color" : "333333", }] }) Of cour...

Modifying Liferay javascript functionality

I want some tags to be added to an article. The problem is that the tags are displayed in the pop-up window in "random" order. This is due to order they are pushed to the page. I want to intervene, sort the tags and present them ordered. How would you do that? I spotted the methods in tags_entries_selector.js, but I am not really sure wh...

Multi-page AJAX form with conditional subsections

I would like to go about creating a multi-page form that changes based on options that are selected on previous pages of the form. I want to use Zend_Form, and I know JavaScript will be in charge of making the different form fields appear/disappear, but I don't know how the two will work together exactly. My question is how to get star...

jQuery and WebServices

I want to call this WS http://www.webservicex.net/country.asmx?op=GetCountries What is the best possible way to do it using jQuery ...

Using onRelease with sIFR

How do I catch onclick events in sIFR? I know I'm meant to use onRelease, but can't figure out how. I've been looking high and low for a solution to use it in combination with jQuery ui tabs, which is triggered with this function: $(function() { $("#tabs").tabs(); }); I've tried simply inserting it like this, obviously without any ...

Double loading issue in Javascript / jQuery/Microsoft-ajax hybrid

Hey StackOverflow. I Have an odd issue with some JavaScript code (again, I hate debugging JS code). I am working on a regular table - which I fill up from a JSON call, and have added in support for some paging (sort of 2x paging I guess you could call it), sorting and some selecting of rows. Everything is working nicely - BUT when a row...

data method in JQUery

In my code I want to send two parameters in my data. Name is one of my parameter names and its value is in a variable a. Another parameter name is type with the value in the str variable. The following did not work for me: $.ajax({ type: "POST", url: "./server", data: "name="+a+"type="+str, success: function(msg){ ...

jQuery version of YAHOO.lang (isUndefined, isNull, isString etc.)

Does anyone know of a jQuery plugin that has 'helpers' or extensions like those found in the YAHOO.lang namespace? I have in mind functions such as: isNull isDefined isString isFunction I would also appreciate the same kind of thing for strings and arrays, such as Contains, StartsWith (I know these are easy to write, I'm just looking...

How to do an update status (ajax) with Jquery?

How to do an update status like what are you doing now (facebook + ajax) with Jquery? I found a tutorial that very similar to this, but they using mootools, is there a tutorial that use Jquery? I am a new to javascript and jquery, I need your guys help and advice EDIT: The mootool example can be found from here: http://nettuts.com/t...

JQuery: Showing / Hiding html tags if another tag is empty or not

Hi, this is my first time posting here, I have a question which I have searched high and low for and so far cannot find a working answer. The HTML would be as follows: <span class="label">Label:</span> <span class="value">{{Value}}</span> Basically, {{Value}} is a variable inserted (or not) via php/mysql.Of course if {{Value}} is empt...

td colspan does not work while using jquery show/hide()

I have a table of content <table> <thead> <tr> <th>First Name </th> <th>Last Name </th> <th>Description</th> </tr> </thead> <tbody> <tr class="odd"> <td>John</td> <td>Deo</td> <td><a class="personal-checking-more-link">More</a></td> </tr> <tr><td style="display:none" colspan="3">Description goes for 1st row</td></tr> <...