jquery

Get a selected radio button value after POST to set other fields enabled/disabled

I have an MVC application with a simple control to all selection of All Dates or selecting a Date Range. The radio buttons have an onclick handler to enable/disable the dat pickers. All work well so far. When I try to set the correct context state for the datepickers after doing a POST I cannot get the jQuery selector to return the rad...

Why does this jquery slideToggle code not work?

I am trying to alter the button text for a expand/collapse button. Basically, a user clicks "Collapse" and I perform a slideToggle and when the slideToggle is done, I change the button text to "Expand" and vice-versa. The following code works great however if you click the expand/collapse button rapidly, it looses its mind and shows "E...

Using Javascript to get URL Vars, not working when multiple values present in QueryString

Hi, I am using a Javascript function to get the values of a URL to pass to jQuery using the function below: function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash...

count down timers in jquery

How do I find out the most commonly or popularly used count down timer in jquery. I have been looking into this (http://plugins.jquery.com/project/countdown2) but not sure if this is well supported. Is there a some kind of a ranking system for the jquery plugins ...

Web service exception handling - looking for alternatives to SOAP.

Hi, I'm looking for a design pattern to handle exceptions generated by the web service. I have looked at the SOAP examples and it's not suitable for my project. I make the calls to the web services through AJAX. If the call fails or business logic isn't met I'd like to pass a custom object to the browser which will contain some inf...

Can i have a flash movie communicate with Shadowbox jquery overlay?

I want to have my overlay adjust in size depending on how much content is being shown in the flash movie. Also, I want it to resize in real time when the user adjusts the content. Is it possible? ...

jQuery UI - Sortable isn't firing?

Hi, I'm trying to get the jQuery UI sortable plugin to work and I've created a list that looks like this: <ul id="sortable"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul> And I've included the plugin script files: $(function() { $("#sortable").sortable(); alert('test...

jQuery autocomplete on multiple fields

Hi all, Surprisingly, I didn't find any answers to my question. I want to make a form on jQuery with two fields. City Code. City Name. and when I enter a city code and go out of the field. I want an autocomplete on the city name. I Installed the jQuery Autocomplete plugin. and I have the following code : $(document).ready(functi...

Sending search request to Datatables jquery plugin

Has anyone ever sent a search request from one page to the dataTables jquery plugin on another page? I'm not sure if its even designed to work that way. ...

jQuery iBox (lightbox clone) and IFRAMES

Hey there you lot, is there a way that I can open a lightbox (in this case iBox) from within an IFRAME and have the actual lightbox open in the Parent page? sigh I am confusing myself here! ...

Why is my controller action not being called upon re-clicking the button?

First, some code: Here is the initial Action that is called when the page is navigated to: public ActionResult ListCodeTypes() { var CodeList = _entities.Master_Codes.ToList(); List<SelectListItem> items = new List<SelectListItem>(); for (int i = 0; i < CodeList.Count; i++) { items.Add(new SelectListItem { ...

Javascript/jQuery HasLoaded or equivalent?

I know in jquery it is possible to call the javascript/jquery onload()/load() functions on, for example an image (<img>). However, if in jquery if i use .html(htmlString) to insert an image after the dom has loaded, how can i add a listener to handle the images onload event? Is there a property I can check to see various images and if t...

accordion in struts2-jquery-plugin-2.1.0 not working

Hi I've just started playing with struts2-jquery-plugin-2.1.0 and was trying the 'accordion from list' from Struts2 jQuery Plugin Showcase, version 2.1.0. Strangely enough, I am getting the data retrived but not the accordion look and feel. Here is the image showing what I am trying to say here, image. I am not on comission for that add,...

jQuery: Mimicking a keydown function by clicking an image

Problem: I'm using a jQuery menu script that has built-in keyboard controls (left, right, up and down specifically). I want to replicate the same functionality as, say, the up keypress when a user clicks on an image. (This is the iPod jQuery drill-down menu found here http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/) ...

GalleryView Jquery

I am trying to implement this JqueryGallery to my website(big gray box). Now my problem is that the images doesn't appear. Here my website here is my header code: <link href="css/galleryview.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src...

jQuery / Dojo - How do I use jQuery with Dojo toolkit

How do I use jQuery with Dojo toolkit? I've heard of both libraries being used simultaneously, jQuery for DOM-related and Dojo for UI (dijit), but I can't find any tutorials or examples of this. Will I run into any conflicts or issues if I load both libraries? ...

YUI vs jQuery, for css style layouts

Hi Complete novice question. I've used jQuery a bit, YUI not at all and know very little about it. I work on a website thats IE specific, we're now looking at making it cross browser. jQuery seems great at hiding the differences between browsers from a javascript point of view. However in terms of css layout is it YUI that I should...

JQuery Validate - class="cancel" submit button only stops validation once.

Hi. I have a form with buttons I do not what to Submit the form, but they are (necessarily) submit buttons. I've given them the class "cancel" and on the first click they are cancelling submission. the desired effect. However, any subsequent click is then back to normal; Submitting the form. Which I don't want. Now, I do have some post-...

Complex Selectors with jQuery Delegate

Is there a restriction on the complexity of selectors that can be used with delegate in jQuery 1.4.2? This works for me: $('.activeTabsList').delegate('.activeTabsListItem', 'click', function() { alert('here'); }); This does not work: $('.activeTabsList').delegate('.activeTabsListItem:not(.selected)', 'click', functio...

JSON jQuery displaying parsed data problem

I have a function $.post('php/client.login.php', {username:username, password:password}, function(json){ var ids = json; alert(json.id); }, 'json'); Which returns undefined, the json data i am trying to read is this [{"id":"8","client":"sam","email":"sam","username":"sam","password":"sam","ca...