Hi everyone,
I'm in a bit of trouble and need help. I basically have a carousel (scrolling) type gallery with three images. You only see one image at a time, and to see the next image, you have to click the link that relates to that image or click on the current image itself to see the next image. This would make it scroll one image alo...
If I do this-
alert(anchor);
I get this-
"[object HTMLLIElement]"
... ok, yep, it is the element I want. So I want to get that elements ID.
So I test it like this:
alert(anchor.attr("id"));
... but I don't get any alert, nothing. I must not be selecting an element. What am I doing wrong, what don't I understand?
...
For some reason I thought this would be really easy. Here's my code:
$('#someDamnedDiv').live('click', function () {
$('a', this).trigger('click');
});
What the Sam Hill is wrong with my function?
...
I have the following jQuery code that detects if a user has clicked a search button but not typed anything in the text box, if so then they are focused on the textbox and the box turns red. What I want to do is when the user unfocuses (blur) from the textbox regardless of whether they have entered text or not then the box will return to ...
Hi!
I'm trying to make a simple drawing tool using JS and Canvas element. My problem is that I would like to have several canvases and user should be able to draw one line through all of them. Here's a little page I did:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/...
Looking at improving the performance of my jquery selectors. so any tips or articles as the best per formant jquery selectors? For example selecting the a div's id. Anywhere online I can provide html and compare the different selectors I can use to select the required element.
...
I have an edit page for my object. Because I've divided data in two tabs, I'm using jquery-ui. On the first tab (#core_data) I'm loading object's main data. Form is submited via Ajax :
<form method="post" class="object_form" id="event-core-form" action="{% url edit_event_data event.id %}" enctype="multipart/form-data">
{{ form.as_p ...
Hello, I'm building a photo gallery. The photo gallery consists of images that users upload. These uploads are resized, and can be of any dimension, 100x100, 2500x2500.
My Photo Gallery View page is Fluid, meaning the width of the page is not fixed.
In the Photo Gallery page I display the original Image updated - no resizing ( though I...
Hello,
any advice on a good form layout plugin available for jQuery?
I am thinking to something like the ExtJs Layout Managers'
...
Hi all,
This should be an easy one. I have a variable that I've already declared called $listItems. The declaration looks like this:
var $listItems = $ul.children('li'); // $ul is just a selected unordered list
Later in my code, I'd like to only get the ones that are currently visible. How would I go about that? Something like:
$lis...
I am working on integrating a javascript shopping cart, simplecart-js, into a Jquery LightBox, Yoxview. Yoxview has an option to add button links in the popup title pane for various options, downloading, shopping cart, etc. The relevant code for my shopping cart button is:
var yoxviewCartButton = $("<a>", {
title: "Add to cart",
});...
Hi all,
This should be an easy one. I have a variable that I've already declared called $listItems. The declaration looks like this:
var $listItems = $ul.children('li'); // $ul is just a selected unordered list
Later in my code, I'd like to only get the ones that are currently visible. How would I go about that? Something like:
$lis...
I've got a modal dialog popping up via jQuery, but I would like it to behave like a regular js alert in that a) if you are on another tab it will bring the browser's focus back to the page with the alert and b) an alert sound "ding!" will be played.
Is this possible?
Here is my dialog box:
var $newCandleDialog = $('<div></div>')
...
This should be so simple:
$("a").hover(function () {
$(this).stop().animate({color: "#00cc00"}, 'fast');
}, function () {
$(this).stop().animate({color: "#939393"}, 'fast');
});
$(".footer_link").find("a").hover(function () {
$(this).stop().animate({color: "#333"}, 'fast');
}, function () {
$(this).stop().animate({color...
how to set a bigger font size using jquery for the whole page?
...
I am trying to do a disjointed jquery hover. When the user hovers the cursor over a menu item, an image in the sidebar should swap to a secondary image. However, I have been unable to get it to work.
Here is the jquery:
$('#main-menu li a').hover(function() {
$("#vette").attr("src","images/vette2.png");
});
Here is the HTML
<d...
I am creating a Comment-Reply system, similar to stackoverflow and I wonder how to implement it using JSF + jQuery. I have a dataTable, each row have a link and a textBox, and once I click a link, only the textbox on that same row appear, and put focus on that textbox.
<h:form id="userComment">
<p:dataTable value="bean.comments">
...
This is a very narrow scope of the code, but it is where the issue lies.
function getJSON(tabUrl){
$.getJSON(tabUrl, function(data){
console.log(data);
});
}
I am using jquery 1.3 because getJSON in 1.3 can handle malformed JSON. The server I'm getting my json from uses the old parameter:'value' format.
Here is the perplexin...
Hi,
I'm wondering if this could be achieved.
I know how to get the top 10 from my database using SQL. But I would like to take it a step further.
My idea is to update the DIV every couple of seconds. First the script will check if there are any updates in the database, if so the DIV should be updated. I can do this on my own, but my ...
How to add pause button in this jQuery image slider? I want to add Pause on click button at last after 4 ?
Like this: see example pic http://shup.com/Shup/431390/110929231254-My-Desktop.png
http://www.sohtanaka.com/web-design/examples/image-slider/
I want add another link button to pause the slider on current slide. and it should no...