jquery

jquery ui date picker future date

Is it possible to disable future date from today? let say today is 23/10/2010, so 24/10/2010 onwards are disabled. sorry i am very new in jquery and javascript. ...

Temporarily set all css z-index to "none"

How can i walk through all elements and if there is an associated z-index style applied to any elements, set that z-index style to none...? Then upon completion of the following function, return the original z-index's to there original value. The small script i am working with. $(document).ready(function() { $("<div/>", { "class": ...

ASP.NET MVC Intentional Ajax Failure

I am making an ajax call to my controller which is going to perform a long operation. The operation can fail for many reasons or succeed. If I want to force the failure code of my ajax call to execute ("error"), what do I need to do in my controller before returning? Just throw an exception? ...

jQuery shortcuts / technique for toggling classes

Hi! In jQuery, is there another way to write this? Version 1 $("#date_filter-enable").click(function() { $("#search_dates").removeClass("hidden"); }); $("#date_filter-disable").click(function() { $("#search_dates").addClass("hidden"); }); Version 2 $("input[id^=date_filter-]").click(funct...

Preselecting multiple options

Hi there, I can't find a solution that works for me. I'm trying to preselect multiple values in a multiple select box depending on what JSON returns. JSON returns the following string from a coldfusion cfc: "4^Caribbean,8^Middle East,5^North America" The string is represented by "res" in the code below: $.each(res.split(','), fu...

JQuery popup and how to stop javascript code logic behind

I am using jquery.alert.js library to display alert, it worked great exception one case. In normal situation, if i use the default alert box of Javascript, the box display and user has to click ok button then the next code logic will be executed. However, in case of jAlert, it is using callback function so it will continue to execute the...

How to turn jQuery/Javascript functions into methods

Could anyone explain how to turn functions into methods and the variables into parameters of an object in jQuery/Javascript? And even more interesting Why i should do that? ...

jquery theme settings options

Creating this theme, I'm pretty new to jquery and struggling as usual. Just watched this tutorial and decided to have a shot at making my own theme settings to simplify customization. This is what i have so far: (function($){ $.fn.themeSettings = function(options) { var slideshow = { ...

Jquery cycle plugin multiple pager in the same page

I have a problem with cycle plugin multiple pager in the same page I would like to show 24 cycle plugin in the same page. Each plugin contains some picture and information. So I would like to control eachother with "pager". Everthing is ok, all plugins it works simple document ready fuction. But I have a quite diffrent problem with pager...

How to selete listbox with options in Ajax PHP jQuery

I have 2 tables in my database call groups and players i am trying to select the group first and then the players show up in another listbox. can anyone help me out please. DB Groups id Name 1 Red Group 2 Blue Group 3 Yellow Group Players id name group_id 1 ...

jquery arrays intersect

Hi, I previously posted this question as jquery/javascript: arrays - http://stackoverflow.com/questions/3969576/jquery-javascript-arrays. But since I am a complete beginner I have formulated the question wrong and didn't understand the answers either.... :( After failing to implement the given solutions I did some more looking around I...

Open Jquery Dialog Server Side

Hello. Is it available to open jquery Dialog Server Side From Behind Code in asp.net? Please give me an example or a link for more information. thanks. ...

jQuery: Why does this selector work only some of the time?

I've got a list that looks like this: <li class = "current_parent level-0"> <a> Parent Link </a> <ul class= "children"> <li class = "level-1"> <a> Link to child </a> </li> <li class = "level-1 current_page_item"> <a> Link to child </a> </li> <li class = "level-1"> <a> Link ...

Jquery autocomplete: Which is faster? (A) php/mysql/jquery or (B) html/json/jquery? I have two scripts, which is better/faster?

I have two autocomplete scripts, one of them makes use of (A) php/mysql/html/jquery and the other makes use of (B) html/jquery/json. I know that since they're using different technologies they might not be able to be compared directly, but from your own experience and from what you can gather from the pages these scripts are located on,...

unbinding mouseover event on click event

hi i have following code in this i have div card-208 on click i dont want to show the divtoshow div but on mouseover i want to show it wil some delay but not on click <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" di...

Jquery Load based on hash tag working only in Safari

Hello There, I am using a jquery function to take the value of the hash tag in the URL and load that URL into a div id'd 'inload_content'. As seen at http://www.divethegap.com/update/community/ (# When testing only use the 2 test videos at the bottom as the others are not connected to URLs yet. In Safari this works perfectly both on OS...

jQuery selector: defining array index

hi, i'm having several tables in my html markup which dont have any attributes and i'm wondering: is it possible to define a jquery selector which directly picks eg. the 3rd table? thx ...

Why is my element giving me 'undefined' in this jquery .each() function...?

Hi I'm having some problems with this jQuery....I'm new to it. It looks like it's the same as the example I'm taking it from... $.getJSON('<%= Page.ResolveUrl("~/MyService.aspx") %>', function(data) { $.each(data, function(index, elem) { alert(elem.Name); }); } ); elem.Name always says 'undefined'...

fullcalendar not working on hosting server

I'm developing a website with FullCalendar and jQuery. My application works fine and renders events properly on all dayAgenda/weekAgend/month views. But when I run it from the server, it doesn't render events! Also in the current month, it doesn't show anything in month view. For example, If I have an event on 3rd Oct, it shows it only ...

jQuery: form, function and give attribute

I have a form that on action: action="javascript:DoWallInsert($idf );".. Now on this form i have this submit button. I want onclick that it should be disabled, and then enabled again on success (the ajax call inside the function). <input name="submit" type="submit" id="submit" value="Send"> function DoWallInsert(BuID, uID){ $('#...