jquery

problem with delayed loops

I'm having a nightmare trying to get some quotes to loop with a delay. I have created the following code: function loopquotes(){ var items = $('.comment').size(); var randomNum = Math.floor(Math.random()*items+1); $(".comment:nth-child("+randomNum+")").fadeIn('slow').delay(5000); $(".comment:nth-child("+randomNum+")").fadeOut('mediu...

jQuery Sexy Combo wrapper height problem

Hi all. I have a height problem with Sexy Combo ( google 'Sexy Combo' ), a jQuery editable drop-down list. The author of the script didn't optimized the drop-down to look good if it is placed in a popup which is not visible on page load. After loading the popup and clicking on the drop-down, the list doesn't show -- FireBug says it's h...

howto "submit" a part of a form using jQuery

I'm got a form laid out like a spreadsheet. When the user leaves a row, I want to submit fields from that row to the server using jQuery Ajax. The page is one large form, so this isn't really a javascript clicking the submit button scenario - the form is huge and I only want to send a small portion of the content for reasons of speed. I...

jQuery: Is there any reason not to store DOM elements in a variable instead of attaching them to the DOM?

I've got a plug-in I'm working on which fetches a portion of a remote page, and saves that portion to be used in a jQuery UI dialog widget; originally I was attaching the HTML to the DOM and hiding it with display:none until it was called with $.dialog but I realized I could just leave the DOM node in a variable. Is there any reason no...

Django , with jQuery Basic help !!

Hello , I am working on quick project , listing search results from bing and my goal is user can save searches they perform . however i manage to list the search results in the template , and right now want to save the result items to the database using AJAX ! well this is my first attempt with ajax ( jquery ) and django ! template {...

jquery exander/collapse but not first

here is the code: <script type="text/javascript"> jQuery(document).ready(function(){ jQuery(".toexpand").next().hide(); jQuery(".toexpand ul:first").slideToggle(); jQuery(".toexpand").click(function () { jQuery(this).next().slideToggle('medium'); }); }); </script> I like to start all the ul next to the .toexpand collapse...

Jquery AutoSuggestion from Excel File

Hey All, I was just wondering if anybody knows how to make one of those autosuggestion textboxes so that when you begin typing, it will autosuggest based off of an excel file? I've searched everywhere and couldn't find anything, and I don't know where to begin. Creating the autosuggestion is not my issue, it's just getting the data fro...

Can Use JQ Insted of PHP for Webdevelopment.

can we use JQ insted of php for developing website. which one is more preferable. I think we can also use JQ for web development.Using JQ we can Execute MySql query like php. Which One is better? and why? ...

How Can i optimize qTip?

Hey everyone! i've been doing some profiling on an app i'm working on and qTip is really slowing it down! I love this plugin but adding the tips on document ready is taking almost 2 whole seconds (about 300 tips on the page). I know it's a lot of tips, but is there anyway obvious or not so obvious ways to speed this up? i'm using th...

resize content div + image on browser resize

What would be the best way to resize a content div to match the browser, keeping a white margin around it, whilst also resizing an image contained within it, so that it keeps a good aspect ratio? this is the effect i am looking to create: http://www.louisvuitton.com/ ...

jQuery text fade/transition from one text to another?

jQuery can obviously fadeIn/fadeOut text easily. But what if you want to change the text from one thing to another? Can this happen with a transition? Example: <div id='container'>Hello</div> Can one change the text Hello to World but have it change with a transition (like a fade or some effect) instead of changing instantly? ...

calling a webservice from jquery-put the result in a variable

Hello guys, i have a webservice checking if a user is connected: [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public bool IsConnected(BasePage basePage) { bool IsConnected = basePage.User.UserId != 0; return IsConnected; } BasePage is the parent of all my asp.net pages: public class BasePage : System.Web.UI.Page and ...

jQuery AutoSuggest Plugin

Can somebody post a simple html code on how to implement it,with simple data object. Here is the link http://code.drewwilson.com/entry/autosuggest-jquery-plugin I have tried everything to get it working and i have not succeeded so far, can somebody please help Thanks Mason ...

Handling standard user facing scenarios

*I was wondering if i could do all these in javascript, as opposed to having rails helpers In my application, there are several types of "if-else" UI cases. This is a fairly common scenario, and i wonder if anyone has a tidy way to do these? EG 1) There might be several types of links with the same behavior: "upvote", etc. If i...

MooTools: Attaching event to multiple elements

I've got a jQuery routine I need to convert to MooTools, but I can't get it to work. Here's my jQuery version: $(".google-analytics-link").click(function () { var href = $(this).attr("href"); pageTracker._link(href); location.href = href; return false; }); Here's my MooTools translation: $$(".google-analytics-link").a...

How to run a jQuery Code after loading all the images in my page ?

How to run a jQuery Code after loading all the images in my page ? ...

How to add a class with if statement in conditional statement with jquery?

I am having a problem with IE7 in a certain page where URL has katoder, http://www.mywebsite.com/Kalde_katoder.asp I want to add a class ie7 to id system. I tried this but it does not work. Could anyone point me to the right direction? Thanks in advance. <!--[if IE 7]> <script type="text/javascript"> $(document).ready(function() ...

How do I acquire the value of a ASP label if it is nested? (client-side)

So there is a ASP checkboxlist that gets rendered to the table and in the code behind the checkboxes get bound with a label from a code table. I need to display a text box only if a certain checkbox is checked off. <table id="chkSomeCheckbox"> <tbody> <tr> <td> <input type="checkbox" id="chkSomeCheckbox_0"> ...

Controlling the top parent window from iframe with jquery or javascript

Hi, I have a page on my site which has a blank text field. Next to this is a button which opens up an iframe (using colorbox). This iframe shows a list of files - next to each file is a button which puts the filename in to the text field in the parent window by calling the function below: function returnImage(file){ $('#input_text_i...

How to save multiple data variables into one cookie, using jQuery

I have made pagination with jQuery and now I would like to save the selected state/page to cookie. I would need to save tab-id, offset and limit values. I know that I can write to cookie like this: $.cookie("example", "foo"); And then read it: $.cookie("example"); But how I can save all those three thing into cookie? And especiall...