jquery

will destroying a jQuery dialog remove any handlers attached to elements inside it?

Hey Everyone, I've noticed some memory leaks in an app i'm building, after playing around with for a while FF will start to use up more and more memory (upwards to 1 000 000 k). I've done some research and found that if i do a $(selector).html(some stuff) to replace the contents of something the jQuery handlers from the elements p...

Fancybox iFrame Links Bound / Null Response

I've got http://fancybox.net running on http://shimmiesforthecure.org. For some reason, it's not working at all, I checked the header and it verifies that all CSS and javascript files are loaded, I'm using the same call to initiate the script that I always do, yet nothing. I know it's working somehow, because it's binding the links (th...

Text underneath link is getting in the way in Internet Explorer

Hello -- I am using the Nivo slideshow (http://nivo.dev7studios.com/) throughout a site i am developing ... it is working great, except that in Internet Explorer the links only work when the mouse is not hovering over the text in the slideshow - in other browsers you can click anywhere in the slideshow (on the image, on the caption, on t...

JQuery's $ function for PHP

Hi, I'm wondering that if there's something like JQuery's $('element.selector') implemented for PHP? When I CURL and I got HTML codes from the remote site, I'd like to select only the tags I want before I send out to my HTML. Thanks ...

how to pass value from asp.net server control using jQuery? 2nd try

I want to pass the value of the label control (lblNames) via jQuery. The current code is not working. I'm using the label control to collect the uploaded file names in code behind. Is there a way? <%@ Page Language="VB" AutoEventWireup="false" CodeFile="FileUploader.aspx.vb" Inherits="FileUploader" EnableEventValidation="false" %> <!DO...

How can I access the contents of a frame or iframe with JavaScript or JQuery?

I'm trying $(document).ready(function(){ var myIFrame = document.getElementById("myIframe"); var content = myIFrame.contentWindow.document.body.innerHTML; alert( content ); }) but I get an access denied error I guess because what I have loaded in the frame is Google. Is what I want to do even possible? T...

part of form in modal window with jquery

I have complex form that I want to make more user friendly. It consists of many fieldsets. Can I take one of fieldsets and make it into a modal window without braking form? My idea is that fieldset is visually replaced by button that triggers modal window that displays replaced part of form in modal window. form must perform same as wit...

Stop Wordpress from automatically inserting scripts

Is there a way to stop Wordpress from automatically inserting scripts into my theme from wp-includes/js? It's kind of annoying that I can use/choose to add my own. Thanks! Actually it's not including the jquery but scriptaculous.js and effects.js and for some reason they're interfering with jquery. Would it be the same just putting: ...

Javascript Overlay/Dialog Tracking with Google Analytics

Using javascript (jQuery to be precise in my case) I need to enable a dialog box to be tracked in Google Analytics as a unique page view, despite it being only a modal overlay. For context purposes I dont want the user leaving the page and the dialog content is loaded in via an ajax call. ...

How to select a tag with a variable value in jQuery

Hello Everyone, I am very new to jquery/javscript. I have a simple question. Lets say i have a tag like this: <Table id="mytable" > <Table> And i want to add some rows to this table. Then we do like: $("#mytable").append("<tr><td>value</td></tr>"); //some thing like this may not be having the right syntax Now my question is...

Pulling share thumbnail given URL from Facebook

Hello, I would like to pull the share site thumbnail from: http://www.facebook.com/share.php?u=my_website_url inside the tag <div class="UIThumbPager_Thumbs"> I would replace "my_website_url" with a given URL. Thank you! :) ...

jQuery AJAX call to WCF service with custom principal.

I have successfully created a WCF service using the webHttpBinding with no authentication or security. I can call my function over and over and it returns the value as expected. Now I created a custom IAuthorizationPolicy, UserNamePasswordValidator and IPrincipal. I went back to wsHttpBinding (default) and did a normal service refer...

jQuery .animate problem with Safari

Hi... Can anyone tell me why this doesn't work in Safari? var el = "#divName"; $(el).prepend($("<div id='" + id + "' style='position: absolute; top: -35px; width: 100%; height: 35px; clear: all;'></div>") .data("data", o) .html("<table style='width: 100%; height: 100%; position: absolute; top: 0px; lef...

How do I selected a table row based on a dynamically added class name?

I have a table where I select a row by clicking it. On click, the class selected is added to the row. Here is the code: // Change row background color on click jQuery('#rowList tr').live("click", function() { jQuery(this).closest("tr").siblings().removeClass("selected"); jQuery(this).toggleClass('selected'); }); Now, cl...

Jquery - alternative to .length to check if element exists

Possible Duplicate: Is there an exists function for jQuery Just as the title suggests, whats the best way to check if an element exists with jquery. I find myself constantly using .length on elements. Is there a better way of doing this? The way i typically use it is that if i am going to do anything with an element in a sc...

IE8 issue with toggle() to show/hide content

Hi, I have a problem in IE8 only where a link should show/hide content when clicked. IE7 and webkit and gecko browsers work fine, only IE8 is the problem! I can't see what's going wrong with the code I've got, and even just trying show() instead of toggle() doesn't have any effect - am i missing something here? Thanks for any help! ...

Looking for a JavaScript multi-level picklist DATE-PICKER widget.

I am looking for a sample of a date picker widget (for faster selection of Date Of Birth) that is in the form of a multi-level dropdown, like this: Field | | 1970 -----YearSelect 1971 1972 1973 ... | March ----------MonthSelect ...

jQuery - Select previous DOM element matching a class, when the DOM element is not in the same tree.

Hello, I'm trying to use jQuery to access a DOM object that appears earlier in the code from the DOM object that I am starting with. This would ordinarily be easy with jQuery's traversal methods, like .parentsUntil. However, in this case the object I am trying to find is not a parent or sibling of the object I am starting from. For exa...

How can I select a specific column in a row using jQuery and JavaScript?

I am very new to jQuery and JavaScript. I have a small question. Let's say i have a HTML table like the following <Table id="mytable"> <tr id="element"> <td>value</td> <td>text</td> </tr> </Table> In the above example i know the row id and i want to change the value of the second column of the row with that particular id. I need...

HTTPS and external (CDN) hosted files?

I have a page that references a couple of externally hosted javascript files - namely, jQuery on Google and YUI using YUI Loader. The trouble is when I access the page via HTTPS the browser complains of mixed insecure content, since the external javascript files are being accessed using http instead of https. What's a good way to deal ...