jquery

jQuery hover fadeTo with three div's

I'm using this div fadeTo code from here, which fades one of two divs, depending on hover. What I'd like to do it add a third option - and a third div called #maindiv - in this way: "If hovering over #maindiv, don't fade either #sidebar or #primarycontainter, but if hovering over #sidebar or #primarycontainter, then fade either of those...

Detecting DOM Ready State Within an iFrame (jQuery)

I have a script being run in a document that may or may not be nested in an iframe. I have sorted out the issue of detecting the nested, but I can't figure out how to detect the ready state of the DOM when it is an iframe. Here is what I have already: if (window.self !== window.top) { // is nested // DOM ready test here ...

Need some jQuery to remove an <a> tag with an empty href.

I've tried a couple times but can't seem to figure out how to write a simple piece of jQuery to remove an tag if the href is empty. Here is the string I need to remove. <a id="single_image" href="">Zoom</a> Any suggestions? Thanks in advance! ...

Prevent jQuery animation queue

Hi Everyone, I have found a number of answers for the same question in a DIFFERENT context. I'm looking to add '.stop' to the following code to prevent animation queue buildup: //Top Mailing List Drop down animation $(document).ready(function() { $('#top_mailing_hidden').hide(); jQuery('#top_mailing') .bind("mouseenter",functio...

jquery ::: replace hyperlink text?

Just trying to replace the hyperlink text and I'm not finding a way to do this... I tried the code below, but, I get a syntax error? EDIT <script type="text/javascript"> var $j = jQuery.noConflict(); $j(function() { if($j("a").text() == "Contact") { $j("a").text() = "Connect"); } }); </script>...

jQuery UI .sortable() with jQuery 1.2.x

Greetings, I'm in need of implementing functionality equal to that of jQuery UI's Sortable method: http://jqueryui.com/demos/sortable/ However, I'm not able to use a version of jQuery 1.3+. There is other functionality on the pages that is dependent on the older version which ceases to work when upgrading the older version of jQuery. ...

Jquery problem adding new attribute to form element.

Well, I tried reading as much as I could but can't seem to find the specifics for what i need. I'm new to jquery, but so far it has solved all my previous problems and I'm really liking it. Here's my problem. I'm trying to create a dynamic form where the user presses a button and it automatically clones the div object that contains t...

JQuery AJAX Call with Unicode. Proper way to POST Unicode data?

I have page that POSTS AJAX to the server, and often the data will be Unicode. This works most the time, but it appears that sometimes it's breaking and I'm can't seem to find the answer anywhere. I have been using encodeURI, but I'm not sure that's correct. Here's a example of the code: $.ajax({ type: "POST", url: ...

How to scroll browser view port to top of page after an ajax submit?

I have an upload form -- after the user submits the form, I'd like to scroll the window back to the top of the page (where I display some help text). How do I correctly scroll the window back to the top of the page? ...

Count images with jquery and then output the #

I am looking to count the number of images with a certain div class name and then output the that number that is calculated to display it on a page. Any advice on how to get this. It would be used to let the user know how many images are in my image scroller. Eventually I would like to figure out how to get a dynamic list like 1/10, 2...

jQuery Innerfade - fading weirdly on IE7

Hi all! I'm wrapping up a new site, http://architect.sitesbyjoe.com and I'm using the innerfade plugin on the site's homepage. For some reason, the fading is slow and choppy. The only other thing Javscript-wise is the Fancy Zoom, but I've already removed it etc with no change. Any thoughts? Other posts are pointing to CSS issues.... ...

How to get reference to jQuery selector for content just added via manipulation method?

If content is added to the DOM using, e.g., $("ul").append("<li>test</li>"); how does one get a reference the content just added w/o having to select the newly added content? Assigning the return value from the append() method is the jQuery object. var newContent=$("ul").append("<li>test</li>"); One could do var newContent=$("ul ...

Active Index is not being persisted in jQuery accordion change event

I have an asp.net aspx page and on that page I have a hidden input field with and id of paneIndex. However, when I load the page, the alert shows index 1 which is correct on the first load, but if I open up pane 3 for example, the alert shows 1 still. Am I doing something wrong? In a Custom.js file, I have the following code: $(docum...

Jquery click registers in FIrefox, not in IE

what might be a reason for a simple click to register in firefox and not in IE? Edit: I should get points just for figuring out problem with such a bad question. ...

jquery flot - how to find the plot object for the graph I'm hovering over?

Given several flot objects on a page, each with the jquery.flot.crosshair.js plugin enable, how to I figure out which plot object has the labels I want to modify? I am using the example code here: http://people.iola.dk/olau/flot/examples/tracking.html, but I have multiple flot objects per page. Each seems to show the crosshairs just fi...

Is it possible to use javascript to download JSON object from another domain/server?

What would that code look like? ...

Writable Select Box

Looking for a Jquery plugin so I can have a select box that includes a writable option. So using javascript to merge a select box with an input field. I'm thinking this would be a fairly common requirement, Anyone know of such a plugin? Thanks ...

CheckboxList input Not working in IE7/6

I modified asp.net checkboxlist using css. It hides input using display:none and I'm able to click on label and casue postback in Firefox but in IE when i click label in checkbox list it doesn't work. What could be wrong here? My code: <div style="padding-left:15px;"> <asp:CheckBoxList ID="cbl" runat="server" AutoPostBack="true" ...

Fill list up to 10 items

I'm looking for a way to fill a <ul> list up to 10 item. If the list doesn't have 10 in the HTML, I want the items to repeat themselves. For example: <ul id="carousel"> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> </ul> I tried to do it myself, but it's not exactl...

jQuery $.post problem with emails

I'm trying to post form data in a lightbox through jQuery and php. There are only 3 field values I need to pass. I do not get any errors on submit, but the emails aren't sending. I'm noticing (through Firebug) that the email addresses that are being entered into a textbox (which are the email addresses the form sends to) are being sen...