jquery

Checkbox and Hidden Type issue

All, I have a checkbox and a hidden variable with the same name. <input name="chk9[143]" value="" type="hidden"> <input name="chk9[143]" onclick="toggleParentCheckboxes(this, 'frmSomething', 0);" type="checkbox"> When the form is posted, I get the value of the hidden variable even if the checkbox is checked or not. That is fine. Now,...

jQuery: show() and hide() in order?

I have an area where a chunk of HTML (shown below) is added dynamically as many times as the user would like. No worries there. The problem is, within that HTML block is a select box and then a div that is hidden by default but should be shown if the "dropdown" option is selected from the select menu. <div> <select name="" class="se...

Using Jquery to pull Wordpress post feed into static page

Just like using the many twitter or facebook widgets out there that pull the feed and display it in a nice widget, I want to create a "widget" that pulls a feed from a wordpress blog that I have, and displays it on a static, non-wordpress page. Before I try getting my hands dirty with jquery, do you know if there is any pre-existing code...

JQuery can't call function on HTML placed using .load

Hi, I have come into a bit of a problem. I am dynamically updating dropdown lists using JQuery and PHP. I am using the following JQuery code to run a PHP page and insert the results into the page: $("#booking-form-area").change(function() { ajax_availabletimes(); }) function ajax_availabletimes(){ var venue_val=$("#booking-form...

parent.window with jquery

$('#thelink').click(function(){ $('div#thedialog').dialog('open'); }); How do i change this to open window.parent´s div #thedialog.. can i do this? ...

Selecting single user clicked img in jQuery

I have an accordion menu that I am trying to get images to switch from plus to minus when the accordion is activated. Currently I can only get all images to change to a minus when anything is clicked. There are already bg images on the links and I really dont want to go that route.. $(function() { $('#menu ul').hide(); $('#menu > li...

Call jQuery from ColdFusion

Is it possible to call a jQuery function from within a ColdFusion switch statement? If so, how? ...

Have jQuery submit a form to get a file download?

I have a form that posts to a url which triggers file download. The server is ASP.NET MVC and I write out a CSV file. What I want to do is have a jQuery/javascript submit the form instead of a form submit button. For example, I created a link and attached a handler using jQuery to submit the form: $(function() { $("#mylink").clic...

Jquery Divs lose styling in IE

Hi, I am using Jquery BBQ and loading the main content part of my page with this (ajax) Im having problems in IE with the DIV that encapsulates the main content (works fine in FF) Whats happening is that the content between the DIV is losing all of the styles associated with it. When I use a made up tag e.g. <mytag id="content"> the s...

jQuery to change listbox selection mode

Hi I have an ASP.NET page with a listbox whose selection mode is set to multiple by default. I would like to set its selection mode to single on a button click. Code snippet of my attempt: $('#testBtn').click(function(){ $('#testListBox').attr("SelectionMode","Single"); }); It is not working though. What am I doing wro...

Implementing ajax calls based on scrollbar position - ASP.NET

I have noticed that in Google web reader (that lets us read RSS feeds on the web), the page does not seem to load ALL the feeds. Instead, as I scroll down, I can see more and more feeds (and the size of the scrollbar increases if you know what i mean) I assume they do this by finding the position of the scrollbar and do an AJAX call. Is...

Invoking a jQuery function after .each() has completed

In jQuery, is it possible to invoke a callback or trigger an event after an invocation of .each() (or any other type of iterative callback) has completed. For example, I would like this "fade and remove" to complete $(parentSelect).nextAll().fadeOut(200, function() { $(this).remove(); }); before doing some calculations and insert...

ListBox switch items asp.net jquery

I've two ListBox (second one is empty on page load) and two buttons which switch items between those ListBox.However,im using Jquery two switch items,which means there are no Postbacks.Once,ive finished,i click another button to save the items from the second List,this time using PostBack. When it runs on server,ASP.NET does not recogni...

How do I select every pair of 2 sequential elements in jquery?

Can anyone please help me to work out how to achieve the following? I have a set of divs of unknown size. Each div has a class of .feature. I need to run a jQuery script to find all divs with .feature and then find all children as a series of pairs. Each pair will then be submitted to a further jQuery function. For example: 1. <div.fe...

jQuery cookies setting select drop down value after page refresh

In all honesty my brain is rather fried after getting this far today. I am trying to save the state of multiple select drop downs on page using this plugin: http://plugins.jquery.com/project/cookies I am using this jQuery to set cookies for the different title drop downs based on their ID: $(document).ready(function() { // hide 'Oth...

jQuery AJAX - Returned HTML vanishes.

Hi there. I'm mucking about with jQuery AJAX and have stumbled upon an oddity (or rather a lack of understanding on my part :). Here is the code for my main ASPX page: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="jQuery_Test.WebForm1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional...

Possible to capture entire call stack from a jQuery call??

Admittedly, a strange question....but is it possible to somehow capture an entire javascript call stack from jQuery? For example, let's say on page ready, I do a for each on every row in a table, and for a certain cell in each row, I want to change the row color based on this cell exceeding a certain value. So, I'm wondering if it is p...

Cloning datepicker objects [JQuery]

Hey, I have an input field that I define as a datepicker through a css class. I now want to clone this input field and have it so the cloned inputs are also datepickers. After reading from various sources I was lead to believe that the following code should work but it doesn't. I was hoping maybe someone could help me figure out what I...

What's the best library to do a URL hash/history in JQuery?

I've been looking around JQuery libraries for the URL hash, but found none that were good. There is the "history plugin", but we all know it's buggy and isn't flexible. I am loading my pages inside a div. I'll need a way to do back/forward along with the url hashing. mydomain.com/#home mydomain.com/#aboutus mydomain.com/#register Wha...

Loading an image: Ajax vs regular old JavaScript.

I have a jQuery-based "carousel" which switches between multiple sale banners on an e-commerce site. They're each pretty large, and I want the page to load as fast as possible. The first banner is referenced in the HTML, and the others are requested through the JavaScript, roughly like this: <div class="banner"></div> Pseudocode for ...