jquery

Update table content while dragging the element using jquery

hi my question is can we update the table content while dragging/resizing the div.The content is the position and size of the div that is dragged or re-sized please help mee ...

Jquery want to position 50 divs around the top left bottom and right of page without overlapping

Hi, I would like to re-position around 50-60 divs of height - 50px width - 50px around the page absolutely using jquery but I want it so that they dont overlap any other div , there is a centered DIV on the page of Height : 700px , Width : 900px . I want these 50 divs to be around it and not overlap any other div or the centered DIV , so...

Having jQuery insert defined content

Hi everyone, I have a navigation menu in xHTML with the following typical structure: <ul id="nav1"> <li><a href="#">item1</a></li> </ul> I have this jQuery script to add a space and a slash after every link: $('#nav1 li,#nav2 li').append('&nbsp;/'); However, after the last link (aka the last li), I want to only add a space (aka &n...

how to compare href to div id

Hi I have a page that check a querystring and adds an active to the the link on that page, but what I need to do is where that link has the ".active" to then show the corresponding div that has the same id as the "active" href, can't seem to figure how to match/compare to do this. This only happens when you first load the page. Can an...

How to get all input controls which are of type file in jquery

I want to get all the file upload controls on my page, Im adding multiple file upload control so i dont have any idea how many they can be but i have to get all of them in jquery. Im using asp.net mvc and jquery ...

How to perform a click function only the first time in jQuery

I want to create a Form with input fields filled with certain instructions ex: "Enter User name" in the text field of label :"UserName".So that in the first click of the text field the previous statement("Enter User name") should be cleared and cursor should await for an incoming text. On another click of the same text field my new text ...

How to show jquery message after clicking on submit button

Hello All, I am new to jquery and would like to learn how to show a message (e.x please wait in green color or submitting ) after clicking on the submit button. Can you please help ...

Using Prototype JS on pages that use jQuery

I am revamping a website that now uses jQuery. The process is more than half way done but for the time being I need to setup a demo as soon as possible. For this I will copy existing ASP code as-is and these particular pages require prototype plugins. Converting all prototype plugins to jQuery is in the todo list. So I am wodering if the...

jQuery attr() not working inside jQuery Validation plugin?! Returns undefined!

So I am using attr("alt") inside the "success" block in jQuery Validation plugin. However, attr("alt") returns undefined even though the attribute ("alt") is definitely defined. Here's my code: $(this).validate({ success: function(label) { var api = $('#' + label.attr("for")).qtip("api"); api.updateContent($('#' + ...

How can I uncheck disabled radio buttons using jQuery?

Here is some code that checks if a radio button is disabled. How do I reform this to make the radio unchecked if it is currently disabled? And yes I still want to remove the parent CSS class. Thanks. $('input:disabled', true).parent().removeClass("style1"); Why won't this work? $('input:disabled', true).attr('checked', false).parent(...

Jquery - animate, expand/resize to the left rather than to the right.

Hi everyone, so I have this image that I want to magnify on mouseover, so I have something like this. $('#something').animate({ width: bigger-than-now, height: bigger-than-now }); but I found that this always expand toward bottom-right, when I want it to expand toward bottom-left? does anyone know how...

Jquery Form validation not working

Hi, I'm having problems with my jquery form validation and now it refuses to work. Follow the links to pastebin for the HTML and Jquery. Its also not showing and hiding the the table rows depending on what type of publication was selected. Here is my html and my javascript Please note that the javascript is the file application that my h...

Need help with this script

Hello, I am using following script to get Gravatar on my dynamic page, <input type="text" id="email" value="{$clientemail}" style="display:none;"/> $(document).ready(function(){ $('.p').append($.gravatar($('#email').val(), { method: 'append', size: '100', im...

Image gallery with relevant text in another div in query

i need a image gallery like this. image count is dynamic. when i navigate left, img-3 will be center image and img-3 content should be loaded in img-2content div. i need a script to do this. thanks in advance. ...

$.get not working ?

Hi, I used this method to load page ... function remoteCall(sUrl, sQueryStr, sCalledBy) { var str = " { "; $.post(sUrl,sQueryStr, function(data){ sResponse[sCalledBy] = data; //alert(data); eval(" "+sCalledBy+"()"); }); } but when i changed $.post to $.get it doesn't work actually i need ...

Put result of ajax call in a variable

I have two pages we will call page "A" and Page "B". Page A in the root of the server which does not have any ASP access, while page B can do ASP cause it is not in the root directory. What I need to do via ajax is to send a request to Page B from Page A to get the day of the week from the server and put it in a variable for further tes...

To get a value of a TD using JQuery.

Hi all, I got a very simple Table with only two rows. I was thinking what is the best way to get the value from the TD with ID "row2". <Table id="testing> <tr> <th> </th> <td id="row1">hello</td> </tr> <tr> <th> </th> <td id="row2">world</td> </tr> </table> Here is my attempt: $(document).ready(function(){ var r=$("#testing"...

Replacing a number in a string with jquery

Hi there, I have a string which has a number in it that I would like to replace with another number. ie <a href="" id="my_link">blah blah 32 blah blah</a> I know there is only going to be 1 number in this string. I can get this far: var my_string = $('a#my_link').text(); But basically I don't know how to then perform a search on...

How to customize Arshaw's jquery event calendar

Hi all, In my current project, client's requirement is to use some event calendar, I looked at the Adam Arshaw's Jquery based event calendar, it is so nice and having more than 50% features which my client need. But I will have to customize the event calendar. In the calendar, the month and week views are fully resembling my requirement...

passing variables between function in jQuery

I have a ajax image upload script which i found here http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/ The problem i'm having is removing the image from the server. I read in the comments that I need to do an ajax call to call a php file to unlink the image. The php file isn't a problem and i think...