jquery

Compress JSON using jqGrid

Is there a way to compress/uncompress JSON sent from an app server to a jqGrid client? Our app server is Java/JBoss. ...

jQuery ui autocomplete - renderItem

I am using _renderItem to modify the result list .data( "autocomplete" )._renderItem = function( ul, item ) { var temp = item.url.substring(16, item.url.length) return $( "<li></li>" ) .data( "item.autocomplete", item ) .append( "<a>" + item.value + "<br>" + item.url + "<br>" + item.descri...

JQuery selector: href attribute doesn't contain neither word1 nor word2

I'm new to JQuery, i suppose that's really simple but I can't find the right selector. I tried with this code: $(":not(a[href=word1],a[href=word2]").click(function() { ... do something } but it doesn't work, in fact it seems to suck all the cpu time. Can you help me? Thanks! ...

jquery callback

I need to be able to have a callback on execution of a function after ready jQuery(document).ready(function() { execute function 1, only when finish do function 2 }); what is the good way to do that ? ...

How to detect document.ready in JavaScript?

Possible Duplicate: $(document).ready equivalent without jQuery I have a framework-less javascript that executes on load: function myJs() { // some code } window.load = myJs; But this causes a delay in the execution of the script. I want to be able to execute this script as soon as the document is ready to be manipul...

jquery .everytime prevent element reloads.

Hi! Im having a issue within a .everytime(2000)... Inside there i got an .hover , but problem is that when .everytime fires the .hover refires. Is there any way of solving this ? ...

Jquery not working when externalized it to js file.

$(function() { $('#<%=btnAdd.ClientID%>').click( { code }); }); The above jquery code I have written inside the aspx code and it works fine. But when I tried to externalize the code by creating one js file and transferring the internal code to that file it does no...

Prevent Recursive jQuery AJAX incrementing browser memory usage

I'm using recursive jQuery AJAX to callback values from the server every second. However, this seems to be incrementing the amount of memory usage my browser has. I'm using FireFox and I have FireBug installed which I believe to be the culprit as this logs every callback in its Console. My first question is, am I right in saying this i...

Jquery's :not(:first).hide() not working in Internet Explorer

I'm using JQuery 1.4.2 for an accordion effect on my website. All but one category start hidden. This works in Chome and recent Firefox, older versions of Safari and all Internet Explorer versions however start with EVERYTHING hidden. Is there an incompatibility with those browsers or is something wrong with my code? $(document).ready(f...

jquery event capture

I cannot find a way to make sure the function is complete before checking for an event <script type="text/javascript"> jQuery(document).ready( function() { var cesc = new flickrshow('flickrbox', { 'autoplay':true, 'hide_buttons':false, 'interval':3500, 'page':1, 'per_page':10, 'user':'53335537@N04' }); jQuery('li')....

I'm using Ajax to populate my web page, but the populated HTML isn't working

I'm using Ajax to dynamically populate a DIV. I have each page content stored in XML files as CDATA. When a user clicks on a link from the navigation bar, the Ajax loads the XML for that particular page, parses it, and populates the DIV with it's content. Everything is working GREAT, except for one thing. I have a jQuery modal popup who...

Multiple jquery dropdown menus on 1 page

I'm new to jquery and i'm trying to make a dropdown menu list like on www.teefury.com (mens and woman sizes). I came pretty close but when i click 1 of the buttons all of them open (or on my second try only the first one). Thus my questions: Does anyone know a tutorial i can use for this? What's the best way to try and create one on my...

Jquery dialog, javascript

Hello I have a jquery dialog with an input text and some checkboxes. The problem is that i cant set focus or enter text in the inputs, I am using jqueryui 1.7.3 and 1.3.2 core, firefox 3.6.10? On IE the problem doesn't exist, so is this a bug of jquery or firefox? Any solutions? thanks code: $('#corr_types').dialog({ wi...

Reload jquery ui tabs in parent window from popup

I have parent window with some jquery ui tabs. I would like to know how I can reload the tabs from a popup window. Any help would be appreciated! This is what I've tried: var selected = $('#my_tabs', window.parent.document).tabs('option', 'selected'); $('#my_tabs', window.parent.document).tabs( 'load' , selected ); ...

jquery ui tabs body background

Hi I can use jquery ui tabs and bend the css used for the tabs. I m using this to display a background color for the body of the tabs .ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; color:white; background-color: #111010; backgorund-image: url(backgrounds/g4wd10.gif) 0 0; opacity:1; font-size: 12px; } ...

jquery sortable problem large nested dataset...

Hi peeps, have a problem with the sortable plugin. I have a dataset presented in tree form and using sortable to allow the user to drag elements from any branch to another. The problem I now face is the dataset has become large so that connectWith option entails many lists connecting to many other lists. Here is the offending code: ...

How can I check what $(this) is?

Hi all, This question is related to this post but I don't see how I can ask another question in the same question. I need to know what $(this) this is. If I alert $(this) I get [object Object]. In other words when I alert($(this)) I need for the outcome to be a specific <li> tag so that I can do an IF ELSE statement when I roll off a ...

Changing the minDate in a JQueryUI Datepicker won't work

I have two datepickers: $('#Date1, #Date2').datepicker({ defaultDate: +1, minDate: +1 }); Whenever I select a date in Date1, I want to set this picked date as the minDate in Date2. I setted a function call for the onclick of Date1. function RefreshDate2() { $("#Date2").datepicker({ defaultDate: $("#Date1").datepicker("getDa...

Logical problem with list order

I think i kind off miss some logical insight. It seems so easy, but i just don't see it.. I have a list and want to see if there are list items before and/or after the clicked item. Here's the code <script> [..] $("a").click(function(event){ var parentEl = $(this).closest("ul"); var currPosition = $(this).parent().prevAll().length +...

jQuery UI Datepicker Add Days

I'm attempting to create something of range system for booking rooms on a hotel website and I'm using jQuery UI Datepicker to allow the user to select their check in date. What I then want to do is create another field that's simple "Number of Nights" and have jQuery Datepicker take the check in date, add the number of nights, and set th...