jquery

jquery passing $(this) to other functions

High! What i want to do is the following: i have a table with a onclick attached to a link that resides in the table of an even row. every odd row is hidden. on a click on that link, the odd row is shown and data is loaded into that row. Works fine Now what i want to do is that whenever that process is done, i want to attach a new clic...

Get the message of exception when calling a wcf service from jquery

Im calling a WCF service from jquery ajax. Sometimes the service throw some custom errors and when it does I need to get the message of that error. In the error function of my ajax call I have the following code: error: function(data) { alert("responseText: " + data.responseText); } And the respon...

jQuery - get a certain range of items within an HTML drop-down menu.

Hi, I have a range of items in an HTML drop-down menu that I need to find with jQuery so I can then hide them [using .css('display', 'none')]. They are (in this example) all the ones between <option>---- Articles</option> and <option>---- Jargon Buster</option> except for the first six items in this range! Other than these first six,...

jquery gallery fade in/out

Hi There, I am building a simple image gallery based on the following markup: <div id="image-list"> <ul> <li id="image-1"> <img src="myimage1.jpg" width="500" height="500" alt="My Image" /> </li> <li id="image-2"> <img src="myimage2.jpg" width="500" height="500" alt="My Image" /> </li> <li id="image-3"> <img src="myimage3.jpg" width="5...

jQuery: datepicker alternative

hi all, is there a better, smaller alternative to the jQuery datepicker? the ui.datepicker.js has app. 70kb which is pretty huge imo. could it be compressed? thx ...

jQuery: restricting the datepicker

hi all, i couldn't figure out on how to do this (using minDate): by default i want my datepicker only allowing to pick dates >= today. how would this work? thx ...

JQuery ajax callback function

Hello, I'm very new to JQuery and I try to fill my html select boxes with Jquery but they stay empty. Below is my code: $('select').each(function(){ var action = 'SELECT_FLDS_GRID'; var fldnam = $(this).attr('name'); $.getJSON('frm.grid.php',{'action':action,'fldnam':fldnam},function(j){ var_SelectOption(j...

django jquery autocomplete - how to - django snippet 233 - handling foreign keys with a lot of values in forms

Hi, I found a nice snippet which seems to be a pretty nice and generic way to get autocomplete to your widgets using jquery autocomplete: link http://www.djangosnippets.org/snippets/233/ Unfortunately I did not found a complete example implementing this snippet and it seems that I do not understand it in detail to be able to implement...

$.getJSON back button showing jason return data not the page

Hi there, I have a little issue with my site. I have a page that hosts a google map. However the map does not get shown until the user clicks a button. It then call $.getJSON to get the addresses that i need to show on the map... $.getJSON(theurl, function(json) { ... } It all works fine. However if the user then moves to a di...

Ajax call from jquery works in firefox but not in IE8

I'm using jquery and I make a ajax call to a webservice that returns some json data. This works perfect in firefox but for some reason not in IE. $.ajax({ type: "GET", url: "http://domain.com/Service.svc/data", dataType: "json", success: function(data) { //In firefox this shows the right value of test but in ...

disable select dropdown during .getjson jquery call and reenable after complete

i have the following code where i getJSON after i click on a select box. Sometimes it takes a long time and the users are clicking on the dropdown again during the server side processing. Is there anyway to disable the dropdown during the server side call and reenabled it after the processing is complete. here is my code <script typ...

Auto Save Email as Draft like gmail feature Using Asp.Net MVC jQuery

Hi I have written code for sending email in that i have included Save as Draft like in gmail feature. But now i tried simply saving when the Save as Draft button clicked. But i need Once "Save as Draft" button clicked still user need to change the body of email content means it will automatically save the remaining boby of the content u...

Content do not appear in iframe until i use the edit button in firebug

Its getting me crazy in FF. I tried the same page in Chrome and content appears instantly. I have an iframe that is loading a chart from another page. The problem is that the chart do not appears until I inspect the element and click on the edit element button. Once I add space after the src property in the html code (see below for bet...

how do i start learning jquery with asp.net?

pls recommend good resources/books to start learning jquery with asp.net ...

jQuery hover still triggering out

Hello I have following problem. I'm working on simple jquery tooltip and now I have to deal with some strange behavior of jQuery. Everytime when I mouseover the element, events for mouse over and mouse out are triggered both - so the tooltip disappears (but if I keep hand over, it does a lot of blinks in one sec). There's my code. va...

Uploadify updateSettings problems

I've got an uploadify form working beautifully, but I'd like to change the settings programatically and I'm getting an error. Uploadify is initiated on document.ready and I'm trying to bind the updateSettings to a button click (also done in the document.ready). I have also tried using the updateSettings function outside of the document....

is there a way to dynamically put a spinner next to a control instead of having divs all over the place

i have a number of dropdown controls and on the change event it kicks off ajax getJSON() calls. I have a div next to each dropdown with a spinner image as i want to display "loading . . " as some of the ajax calls are expensive. Is there anyway i can just have one spinner div on the page and have the spinner move right next to the drop...

Getting the jQuery object/reference.

Here I'm wrapping an HTML tag with another tag '$holder' below. $holder = $('<div />') .addClass('joverlaytext') .css({ position:'relative', }); $(this).wrap($holder); Now after this statment how to get the object/reference to this newly created HTML element, ie. jQuery obj of '$holder' ...

Facebook style comment box using jQuery

i was working on a facebook like website.and im really impressed with the facebook's commentbox.the toggle stuff are really awesome.can someone help me get something like that. please dont send me this link http://demos.9lessons.info/multislide.php this is the most famous link on internet but i dont think it is like facebook from any poi...

Help removing appended data

Hello I am using jquery to do some ajax that calls in some data from a database, on the mouseover and element the method runs and I get the expected results, however when I then mouse over another element, the method runs again, however I need to delete the first lot of data from the screen first, this is what I have so far, $("a.conte...