I am using the jQuery Cycle plugin to rotate a series of images on this site. The images look nice in Safari but they are off about 4 pixels at the top in Firefox. Obviously with the intersecting line there it is rather critical to keep the positioning right.
I would appreciate some help in positioning that element so that the cycle.js ...
Hi I have a question about image rollover but it's not how you'd think.
I've seen an example http://www.asos.com/ and click the home button(top nav far left)
You can see that when you rollover an image that image stays highlighted and the others darken.
I know this has been done with jquery but the code is very messy. Has anyone seen...
I'm using jquery to access a asp.net web service from my website. This web service needs to get the userid of the user that access it and the user is logged in with asp.net authentication on my website.
In asp.net I can just write "User.Identity.Name" to get the userid, now I need to find a way of getting this on the client side, how i...
I have the following jquery code specified:
$('#firstbox ul.checkboxlist input[type="checkbox"]').live('click',function(){
$(this).parents('li').remove().clone().prependTo('#secondbox ul.checkboxlist').animate({backgroundColor: '#FAEA96'},100, function(){$(this).animate({backgroundColor: '#FFFFFF'},800);});
});
It takes the li, remov...
so we have three spans and a parent span
<span id="parent"><span1></span><span2></span><span3></span></span>
when one of the spans reach the right end of the browser, it moves down, leaving its siblings behind. Are there any tricks here on how to keep these spans together that if one moves down, the others will follow? Thanks.
...
Hi!
I'm binding on the keydown event with jQuery to allow some specific characters in a textbox. I'm trying to make my code cross browser and platform compliant. My main issue is that I can't find a way to map the received key code to a valid char code, especially for key code coming from the numeric pad (decimal separator, is it a coma...
My problem is with a jQuery Sort Table and a jQuery Tab interface in my application. With Chrome and Firefox, I have no problem. But with IE 6/7 this error pops up:
Object doesn't support this property
or method.
The code:
$(function(){
$("#sortable").tablesorter();
$("#dashboardtabs").tabs({ fxSlide: true, fxFade: ...
hi,
I'm using Django pagination with jQuery. I can serialize the objects list of the pagination object, but I'd like to serialize the whole object to get more data (page number, total number of pages...).
How can I serialize the whole pagination object?
Thanks
javascript
function getRestaurants(query) {
$.post("/getRestauran...
I have the following code:
var numberOfSelectedOptions = new Array();
numberOfSelectedOptions[0]=0;
numberOfSelectedOptions[1]=0;
numberOfSelectedOptions[2]=0;
$("a.tagvariantoption").live("click", function(){
alert(numberOfSelectedOptions[2]);
});
The alert always says "undefined". It works perfectly when alerting outside of the li...
I included one file (containing a form) two times in php file.I want to submit one form with onclick function.
both forms are same.
i wrote onclick function
document.formname.submit();
I want to do somthing like this
document.this.form.submit();
please give some solution.
...
hello!
trying to get the next matching element in a list;
var newScrollX = $('#projectImages li').next(".instOf"+myNo);
the above works but i don't want it to go back to earlier instances in the list so;
var newScrollX = $('#projectImages li').next(".instOf"+myNo+":gt("+cIm+")");
but that doesn't work. Any ideas?
list is like th...
Hi all,
Quick question - is it possible to detect whether a focus has come from a mouse click or a tab from a focus event?
I guess if there isn't, I'll have to use a click handle on the same element to determine the source, but I'd prefer a way from the focus event.
Thanks
Gausie
...
Hey guys, i'm not sure if was able to explain the at the title, but here's what I need:
I'm making a kind of dropdown menu, and I need to make a List, getting via datasource (function already there) the names of all cities from my database, then when the user clicks the name of a city, this name goes right to a textbox.
I'm not very fa...
Hi there, this is a really basic jQuery question, but i'm not sure how to do this:
<input type=text class=city />
<ul class="cityList">
<li><a href="#">Test 1</a></li>
<li><a href="#">Test 2</a></li>
<li><a href="#">Test 3</a></li>
</ul>
What I want to do is to just get the Text (Test 1, 2 etc) of any clicked li a and put ...
I have a form validation script using the jQuery Validation plugin where for the phone area, there are 2 fields, area code and phone number. However, there is only one label for both fields that reads "Phone." Both fields are required in the validation.
So when there is an error in the phone field, the label gets highlighted and the er...
After working for a prolonged time on a programming problem, I start to get coding tunnel vision. It makes it harder to draw back and look at the problem from farther away.
Hence my question: I am using a Drupal 6 site. When a menu option is clicked, the page opens and a Flash SWF file needs to played in a ThickBox. After 8 seconds, th...
I have a dropdown as:
<select id="HowYouKnow" >
<option value="1">FRIEND</option>
<option value="2">GOOGLE</option>
<option value="3">AGENT</option></select>
In the above dropdown i know the text of the dropdown. How can set the value of the dropdown in document.ready with the text using jquery?
...
I'm using the jQuery Validation plugin on my forms. I have some groups of fields that are optional, but need to be either "all or nothing" - if you fill one input in a group, you must fill all of them.
For example, imagine the user can input one location - street, city, state, and zip - or multiple locations. You don't have to enter a ...
Hi,
How can I count the total of TD elements before a specific TD ?
var eq = $('td.input.current').prevAll('td.input').length;
eq is the position of the TD that have the class current but this position is relative to his containing TR, in other word prevAll() is only usefull for the TD brothers but not cousins =/
...
Yes, I KNOW about Google Analytics. We use it for our overall site metrics, and I know we can track individual links. However, we needed a tracking solution for very specific links and we need that tracking data available to our web application in real time, so I wrote my own solution:
jQuery:
$.fn.track = function () {
var sour...