jquery

scroll bar with animated text with in the scroll bar column.

hi I need a scroll bar with animated text with in the scroll bar column. I will explain this I have created a custom scroll bar. We can scroll the bar and view the content. My problem is that I need to move the content from bottom to the top with in that scroll bar content section. Like marquee. So I have implemented the marquee and pl...

How to add ul and li to each image with jquery?

I have the following code generated dynamically. It can be just one, two, three or four images. <div id="system"> <FORM ACTION="command.asp" METHOD="get" NAME="artForm"> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"> <TR> <TD VALIGN="top"> <H1>Lian Li PC-A70FB, Maxitower, Sort</H1> <p> Lorem ...

Jquery Sortable exchange between 2 rows

Imagine ul-li grid (like in sample "Display as Grid"). a b c d e f Now you change f -> b. What you see in a list: a f b c d e What I need is instead: a f c d e b Do you know helpers or options to do this? ...

Javascript data in page

I have a web page with 2 listboxes (HTML select control). The first listbox is multi-select and contains a huge number of elements. When I select one or more elements in the first listbox the content of the second listbox has to change based on the selected values. These values have to be taken form the database. Because the selection h...

How do I add a browser history state?

So I see a lot of people recommend the hidden-iFrame hack that is jQuery history plugin but all I really need is the other half of this technique: function whenItemIsClicked() { window.location.hash = this.id; //some other stuff, like Ajax } //and then, if page is reloaded... $(document).ready(function(){ var loc = ...

Will unsupported selectors for CSS work when used inside jQuery?

There are several CSS selectors that are not supported by IE6 example: > (Child selector) + (Selects an element that is a next sibling of another element.) [attr] selector :first-child Does this impact the functioning of jQuery? i.e. if you use eg : $("div > a").css("",""); Will it cause problems in IE6 or will it work...

How do I get one DIV to fadeOut() before another DIV, using JQuery?

Hi All, How do I get DIV(.level2) to start executing the fadeOut() only if DIV(.level3) is hidden? What happens at the moment is DIV(.level2) fades out before DIV(.level3) on my menu...looks really messed up. Please see code below: $('.level3').live('mouseleave', function(){ $('.level3').delay(2300).fadeOut(250); if($('.lev...

Count number of days between two dates with javascript

Hi, I get a date from a datetime picker with this: var endDate = new Date(); endDate = $("input[id$='DateTimeControl2Date']").val() Then I find another date and try to check how many days there are between these two dates but I get the error "Object doesn't support this property or method". What am I doing wrong? $('.StatusDateTable...

jQuery, get value when user inserts text

Hi, when user insert text input i wish get, and insert in link. How that make with jQuery? My try (very bad :( ): <script type="text/javascript"> $(document).ready(function() { var values = $('#user').val(); }); </script> <body> <div id = "table"> <input type = "text" id = "user" value = "my_name" /> </div> <a href = "http://...

Jquery - Show progress cursor when browser is busy/loading (windows like)

Hi, i want to show the cursor "progess" on every load. Is it possible to say: when browser is busy -> do something? if not, is it possible to say: if jquery posting -> do something ...without to add code to every jquery post function? I search a clean and global solution. Hope somebody can help me. Thanks in advance! Peter ...

Reset one function after ajax is completed

hey guys, Im having a small problem, I'm trying to create an inline editing system with jquery. So when an user clicks on a table field the innerhtml will change into an input field with ofcourse the content of the table field. Onblur this input field is saved in a mysql db and the innerhtml change back to the new content. I want an use...

JavaScript for loop is making the UI unresponsive

Hello, I'm making a mailing list script that takes advantage of ajax (async=false) to send emails in chunks. Basically the cycle is this: var i = 0; for(i;i<num_rows;i=i+mxt){ if($("#panic").val()=='1'){ break; } perc = (i*100)/num_rows; startThread(i,perc); } Tha panic value is set by a button, the problem is...

jquery tabs, visible based on URL

Am using jquery and tabs based on http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery/ <script type="text/javascript"> $(function() { $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab con...

How to split a particular word from a sentence using JQuery

Hi all, I need to check the value of a particular variable alone from set of variables using JQuery..... This is my code return "{" + string.Format("IsPreviewed:'{0}',PreviewdUrl:'{1}',IsFreeVideo:'{2}'", parameters[12],pranu,jithu) +"}"; The value will be returned to a function in a .Js file for...

JQTransform Reset Form?

I'm trying to do a reset on a form styled with JQTransform, in particular selects, which are replaced by lists. There is a function jqTransformReset(); but I cant get it working for some reason. Has anyone had any success with this? ...

Launch jquery facebox from a javascript function?

I use this inside a function, document.getElementById("DeleteConfirmationdiv").style.display = 'block'; now I want to launch this DeleteConfirmationdiv using the jQuery Facebox plugin. Is it possible? Thus far I've been using facebox like this, $(document).ready(function($) { $.facebox.settings.opacity = 0.2; $('a[rel*=faceb...

Django jQuery get sending logged in users data

Hi. I am trying to send my logged in users details along with this request, as I am making use of a if else endif statement on the requested page to render some buttons, ie "add a new item" My jQuery code looks as follows: $('.wall').click(function(){ $('#loading').show(); $.get(this.href, { request.user: request.user }, funct...

How to retrive GET or POST via JavaScript?

How to retrive get or post via javascript only? and not php. Is it possible? ...

Good Coding: modularized js files or one big js file?

Just want to ask the gurus out there about this. I know that CSS files are better merged instead of separated into a zillion files. Does js work the same way? Here's a few points I currently know(or believe...so you can point something out if my belief/understanding is wrong): i know that js is better modularized for easier maintenance...

Using .offset().top to find Elements position on page

I have a DIV I want to scroll with the page but it's not visible above the fold so I'm using this. $(window).scroll(function() { // Get scrolling position of document var scrollYpos = $(document).scrollTop(); // if its more than the top of the element if (scrollYpos > 551 ) { // Add a margin to the top ...