jquery

Problem removing event sources from FullCalendar (jQuery)

Right then, I'm using FullCalendar to display events from multiple sources, some local JSON feeds, others from Google Calendar. I've implemented a feature whereby a single calendar can be displayed / hidden when it's checkbox is true or false respectively. I'm using this code to achive it: $('#calendar_list input','#sidebar').live('cli...

Click event not working on images attached with rotateAnimation in JQuery

Hi, I am trying to rotate an image with Jquery "rotateAnimation" and trying to add a function to show an alert message on click of each image. The alert message is working for all the image except those i have rotated using the jquery rotateAnimation methode. <div style="position:absolute;top:180px;left:165px;"> <img id="image...

Using lightbox_me for forms in rails 3

Hello I would like to use the jquery lightbox : lightbox_me in order to manager my new and edit forms. My forms are working in simple AJAX, but I don't know how to do to include them into the lightbox and make it works? Any advise? Thanks in advance. Fabien ...

Detect if an element is selected in listbox or not through jquery

I have a multiselect listbox and before submitting the form i want to check whether user select any option or not through jquery ...

ASP.NET how to disable button on submit ?

I have forms with payment in ASP.NET site, when user clicks on asp:Button sometime he submits few times. I want to disable this functionality without harming current ASP.NET site ( by that i mean no fancy jQuery, unless it is very basic and will not interfere with ASP.NET built-in validation) thanks!!! ...

chrome/safari (webkit?) does not post values when submitting via Javascript .submit()

I'm submitting some of my forms with javascript/jquery. $("#myform").submit(); this works fine in Firefox, but in Safari or Chrome, none of my form values are posted. When I check the $_POST variable, in Firefox it's filled up correctly, but on safari/chrome the $_POST values are empty. I submit like this when the dialog's OK button...

Picking the Order of Images in a Component (Div) (Drag-and-Drop jQuery)

I have a problem. I have a div component where I'll drag multiple images. This part is working perfectly. But I am not able to read the order of these images played in the component. What happens, I can play any position in the image of the div component, however, like to read in order as they are, from left to right. I believe it is po...

Jquery: How to find a link in a page based on its href attribute?

Hi Everybody, I am trying to find the first link of my page which url fit to "AAA" (example). I first try to get the links with this href: $('a[href$="AAA"]') Then selec the first one: $('a[href$="AAA"]')[0] Then target the title attribute of this link $('a[href$="AAA"]')[0].attr("title"); But all of this return me "undefi...

jQuery resizable dialog with the tinyMCE plugin shifts the titlebar

I have a jQuery dialog box that I'm popping up which has a TinyMCE editor plugin surrounding a text area. For some reason, whenever I make the dialog resizable (i.e. resizable: 'true'), the title bar shifts up about 10 pixels (i.e. the top is partially cut off). When the dialog is not resizable, the title bar does not move. I've tried...

Check for linebreaks in textarea with jQuery

Hello. I want something like a counter for every linebreaks in a textarea. This is used when uploading a huge number of webbanners, so i need a simple counter for how many a user has added. Right now the counter works only when a user presses a link with a special bannersize. This is my code as it is right now: var i = 0; $('.size')...

asp.net mvc jquery how to enable the button after disable

$("#btn").attr("disabled", "disabled"); i have used the above line to disable the button how would i enable it .this is not working $("#btn").removeAttr("disabled"); ...

Can't make all elements of a class appear after delays

I'm trying to make all the elements of a certain class show, but each after a delay. This code shows all the elements instantly, but I want to wait 1 second between each. $('.notify').each(function(index) { $(this).fadeIn('slow'); }); I've tried using setTimeout but it 'loses' the element variable (the one called 'this'). I've al...

How to get jQuery/AJAX final URL

When I run $.get or .load in jQuery, the request seems to follow 302 redirects perfectly fine and gives me ultimate response, which I can use in the callback for $.get or which plugs into the this element for .load. While I obviously have the original URL since I am in control of the string that's entered as the first argument in $.get...

Need to bypass jquery toggle function

Hi, I need to be able to bypass the first function of a toggle and I was wondering how the jquery toggle works? I understand that if I click on something, the first function is carried out and then when I click on it again, the second function is carried out. What I need to be able to do is to bypass the first function and go directly...

How can I set an individual checkbox in a checkbox group to "checked" based on it's value attr ?

<div id="notifydaydiv" name="notifydaydiv" style="display:none; padding-left:50px"> <input name="notifyday" type="checkbox" value="wed" /> Wednesday <br /> <input name="notifyday" type="checkbox" value="thu" /> Thursday <br /> <span style="color:red; font-size:7pt;">Recommended</span><br /> <input name="notifyday" type="checkbox" va...

Handling Tables by Column

I'm searching for a way to swap table columns around By some parameters (We are talking about jQuery or what not) And sort of a more general question: is there some kind of good JS library to handle tables by columns? ...

How Can I return a rendered asp.NET panel control content from server-side as a result of jQuery.ajax()?

Hi, At first, I should confess that I am not sure if it is a good practice or not. I have came out with the idea due to my practice of jQuery.ajax(). What I want to achieve is depended on this design: //Server Side; an .asmx file contains a method like this: [WebMethod] public string NewContent(string parameter) { string renderedHTML...

XML reading using jQuery is not working in ie6 and ie8

XML reading using jQuery is not working in ie6 and ie8. i've used the below code.. the alert is not coming in ie8, ie6, i've not tested with other internet explorer versions. $(document).ready(function() { $.ajax({ type: "GET", url: "xml/contextMenu.xml", dataType: "xml", success: function(xml) { ...

Getting XML attributes with Load() in JQuery

Hi there. I have this code, which works: $('.invest-port-thumb a').mouseenter(function() { $('#slider-name').load(this.href + ' cName'); }); Loading this XML: <fragment> <cName cind="Industrial" stat="Active">ABC Company</cName> <hq>Chicago, IL</hq> </fragment> How should I modify this code to load the ci...

how to show image loading gif using jquery

can ny one suggest how to do show image loading gif when image is loading in runtime using jquery. ...