jquery

Memory leak involving jQuery Ajax requests

I have a webpage that's leaking memory in both IE8 and Firefox; the memory usage displayed in the Windows Process Explorer just keeps growing over time. The following page requests the "unplanned.json" url, which is a static file that never changes (though I do set my Cache-control HTTP header to no-cache to make sure that the Ajax requ...

Problems with custom alert box via jqueryid dialog

I've been working on a custom alert box that has the same style as the rest of the website via jquery-ui. It was working well except that it wouldn't open more than once. As I was trying to fix that, I broke the whole thing some how, and now I get this error: Node cannot be inserted at the specified point in the hierarchy" code: "3 B...

Help with wordpress and adding jquery please

I have never messed with wordpress much and am real stuck. I am trying to add a video playlist/gallery via jquery. Not a wordpress plugin. I am not even sure what I am doing wrong and am hoping someone could help me through it please. The site is here, http://okaysewwhat.com/ it is just a skeleton now since this does not work yet. Th...

More batch geocoding questions with the Google Maps API v3

I'm trying to figure out a nice way to limit the rate at which I send geocode requests to the Google Maps API v3 geocoder service. I know that Javascript does not have any nice wait or sleep because its execution is, for the time being, single-threaded. Each geocoder request is sent inside of a jQuery each function. So, the general code...

Is sIFR 3 compatible with the jQuery Cycle Plugin?

I am a newbie and I have been struggling with this for awhile. I am try to create a scrolling div using the jQuery Cycle Plugin with sIFR 3 text within the scrolling div. I can get it to work properly in Firefox and that's about it. Any suggestions or help would be greatly appreciated! Here's my link: http://dev.bandspecial.com/test.htm...

How to traverse scope with a variable in JQuery?

I have a string of html that I need to put in an input select but it is out of scope for where the input select is... I think, see that options variable I am building? It needs to be inside the very next select after any of class .product... please advise. $(".product").change(function(){ //get selected option of the select...

Acting on cloned() jQuery element

I have cloned some pagination using jQuery's clone() method. When I am attempting to show the current page number (addClass('active')) the behaviour is only occuring on the cloned version of the element. Can anybody help? $(document).ready(function() { $('table.paginated').each(function() { var currentPage = 0; var numPerPage = 10...

Control embedded Imeem and Youtube players with Javascript

On Songza you can pause / resume a song by pressing Spacebar. How do they accomplish this? I guess these embedded players expose some kind of Javascript API? If they do, where is it documented? ...

Change query argument of jQuery suggest plugin

This question is kind-of crappy because I try to get around some limitations: Current JS sends an ajax query with the following code jQuery('#searchbox').suggest('/?live=1'); What the server get is the following query string: ?live=1&q=searchstring Problem: The server expects the query string to be preceded with 's=' not 'q=' I h...

Jquery on focus event with an html select tag

I am using jquery to change the background of a dropdown. For some reason it now requires two clicks to select an item, instead of one click. What i cannot find out is why this occurs and an efficient workaround or better yet a fix. This seems to be occuring in ie7 & ie 8 (had a friend test it on their box) Below is the exact code we a...

jQuery removeAttribute Error in FF

I have written a jQuery script to glow and then fade out similar to the glow and fade here on stack overflow. The only issue I have is when i call the removeAttribute('filter') to fix the cleartype font for IE, it errors out in Firefox, thus stopping other scripts from working. When I comment out the line, everything works except in IE ...

Jquery and change() with more than 1 function?

I am trying to find the best way to have a different function happen on change of my select box. This is my select HTML <select name="event-recurring"> <option selected="true">None</option> <option value="daily">Daily</option> <option value="weekly">Weekly</option> <option value="monthly">Monthly</option> </select> My jquery is: $('...

How do I bind my Jquery function to a asp.net button and still allow Validation and PostBack?

Now I could be going about this the wrong way so if there is a better solution please post that as well. What I am trying to do is disable a button once it is clicked to prevent double clicks. In the past I have done my just disabling the button onclick but with webforms I am running into a little bit of a snag because there is validat...

Jquery Dialog - extra dialog opening

I have a dialog opening after a form is submitted using the ajaxForm plugin. The ajaxForm updates the dialog content. The problem is that an extra dialog is opening. Here's the javascript code: function formSubmit(target, form, success){ var formoptions = { target: target, success: success }; $(form).ajaxForm(...

JS: if statement issue, how to find element in body?

Hi, I am trying to write a simple if statement in javascript (jquery library) that simply finds the div.video element in the page and if it can find it set the variable 'arrows' to true, if it can't to false. Here is what I have so far: jQuery(document).ready(function () { // Hiding of prev & next arrows on movie pages. var arrows...

jQuery User Control Mess - HELP!

I have a user control that creates a jQuery DatePicker (standard one in the UI). This user control is called twice by my page (date from/to) so I have dynamic ID's for my inputs/controls/buttons/what-not. I need to somehow set either a hidden input or use a webmethod somehow to set a variable on the user control so the search function ...

JQuery - If DIV ID is Visible

I am trying to find out of a DIV is hidden or if it is exposed. This is the pseudocode: if(DIV != VISIBLE) // not visible { show content } Any JQuery Experts able to assist me? Thanks, Robert ...

jQuery slideUp bug?

I'm messing around with some jQuery stuff for a mockup and noticed some odd behavior. I'm hoping someone here can shed some light on it. This is all mockup / test code, so please excuse the sloppyness. So I have a table that I'm using in conjunction with the jQuery datatable plugin: http://www.datatables.net/ My table markup is as...

Open In New Window Link In Iframe

I have an iframe on a page and there is a link I would like to open in a new physical window. When I use target="_blank" it just reloads the page in iframe with the new one. I also tried this javascript: $(document).ready(function() { $('a[target=_blank]').click(function() { window.open(this.href); return false; ...

Validating forms using XAJAX

I am using jQuery to identify when a user has submitted the form. Then I call, using xajax, a php method to query the database and make sure that the usename and email address are not already in use. $('#newUserForm').submit(function() { var FormName = $(this).attr('name'); xajax_validateEmailAddressAndUsername(xajax.getF...