I have a function that fires when the scroll bar hits the bottom. For some reason now, IE is firing the event twice. It wasn't doing it before. I don't have a duplicate function, and not have the JS declared twice. It's fine in Opera, FF, Chrome. I don't know why it's doing so in IE. Oh how I hate M$ and this troublesome browser.
jQuer...
Hi,
I'm using fancybox to display the contents of a div when clicking a link. This works using the code below:
<a id="popupTrigger" href="#popup">popup trigger</a>
<div style="display:none">
<div id="popup">
<asp:UpdatePanel ID="HerkomstCodeUpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>...
Hello,
I need to calculate the width of a div within the viewport. If i use .css(width) on my div, it just calculates the complete width.
My current code for trying to calculate:
var $Windowwidth = $(window).width();
var $lefty = $("#gallerytop");
var $GalleryTopWidth = parseInt($lefty.css('width'));
$("#footer").click(function() {
...
I found that embedded jsFiddle is very useful for readers, but I can't paste it into SO's questions or answers. Is there a way to do this?
...
I have two listboxes set with multiple property and on adding the items from first to second, I don't want the selection on the second listbox.
I wrote the code like this
$("#<%=lbCommcatTo.ClientID%> option").removeAttr("selected");
It worked in IE7 but not in IE6. Can anyone please give me a solution?
The html is
<table cellspac...
With Jquery is there a way to highlight/select(like if someone were to select it with the mouse) the text inside of a div that i click on? not a textbox, just a normal div.
i'm trying to make a 'short url' box, where when someone clicks on the textarea, it highlights all the text, but it also needs to NOT allow people to change the text...
I think I would have gone through like a hundred websites but I do not seem to find the perfect horizontal news scroller for my website. My requirements are:
1) Must be smooth
2) Must scroll from right end of browser to left end (meaning 100% width)
3) Must be continuous (Meaning news-item-1 must be visible immediately after the last-ne...
Hi there
I have a table which i need to move elements up and down in. I have the code working, but as soon as I add a tag to it, it throws the error:
Error: this.visualElement is undefined
Source File: http://192.9.199.11:83/templates/admin/js/jquery/ui.checkbox.js
Line: 94
The HTML looks like this:
<table width="100%" cellpadding=...
Hi,
I want to put a timer onto my gallery rotation script. This timer is a circular animated gif. i want it to start again when a new image loads..
I would have thought that this would work but apparently not.
// Loader needs to be a Global
loader = new Image();
loader.id = "loader_graphic";
loader.src = "images/loader.gif";
var $cont...
I can't seem to get this working seems like it should
$('.titleother').change(function() {
if ($('.titleother').val() == 'Other') {
$('.hiddentext').css('display','block')
}
})
For this HTML
<select class="titleother">
<option value="1">1</option>
<option value="2">2</option>
<option value="Other">Other</option>
</select>...
How do I change the URL with jQuery without reloading the page?
...
Hey. I am trying to parse some JSON into HTML using jQuery. I’ve checked to see if my API request is working, and it is.
I think it gets stuck when appending the HTML.
$('button').click(function(){
$.getJSON('http://api.songkick.com/api/3.0/events.json?apikey=MY_API_KEY&location=ip:94.228.36.39', function(data) {
$('.js...
Does anyone know a good way to cache a collection of objects returned by a selector.
var $platforms = $(".platforms");
var i = 0, l = $platforms.length, current;
for(;i<l;i++) {
current = $($platforms[i]); //calling jQuery() in a loop. Should be cached
}
The above code creates a jQuery instance of each element returned by $("...
I have some filters on the left. Each filter has an id. The id of that filter is used to filter some results that have the id of the filter in their classes.
Filters refer to characteristics of products.. example
<a id="filter_colorRED">RED</a>
...
<li id="item4" class="filter_colorBLUE">Blah Blah</li>
<li id="item5" class="filter_co...
Howdy,
I love this neat thing found on css-tricks:
a:active {
position: relative;
top: 1px;
}
Every link gives a little trigger-response.
However, I want almost all my links to do that, except the ones inside of .children.
Can I create an exception like :not (from jQuery) within CSS?
Thank you for your help!
...
I've been going through the source to find out the critiera for jQuery.ajax()'s success/failure methods being called. It is not based solely on the status code, it seems to also involve the data type.
I always resort to writing custom error handlers using the 'complete'-callback.
Exactly which are the critera for the success/failure ca...
Hello,
I am processing a csv file to import each rows in a Database.
For each row, I've got to ask Google Maps API to get its latitude and longitude coordinates so I can take some milliseconds for each row.
To give some feedback to the user, I choose to add each row with an AJAX POST request to the server API in order to check the val...
Hi Guys, I have a stack of cards. They are stacked so each one has about a centimetre at the bottom visible. What I want, is when a card is clicked it moves to the right, then gets sorted to the top and moves to the left back onto the pile. I then wish to trigger a page change (to the page that's represented by the card).
How would I d...
I have a view page with model validations and client side validation enabled. I have a submit button which on click I have called a javascript function which uses jQuery for an AJAX call to the server..but I want to stop the AJAX action when client side validations fails. Any idea how to?
<% Html.EnableClientValidation(); %>
<% using (...
hi there, here is a challenging question for a javascript expert and/or someone who has worked with jquery plugin cycle
see my demo: http://jsfiddle.net/atoswchataigner/L8fNS/
question: i can't get the js to display the image for the pager in the nav div (pagerAnchorBuilder in the js)
best viewed in firefox
thank in advance,
Will
...