I have a few functions which I load in the ready() event. These basically make a list draggable, and other areas droppable/sortable. Eg. You can drag a clone into multiple areas (lists in divs), and within these multiple areas, you can sort/reorder them (but only within each area). This works perfectly.
I have a button which dynamically...
Hi,
I am trying to set class to a variable. My code is:
var vtxt = $(this).attr("id");
$("('" + vtxt + "')").addClass("on");
It does not work this way. I've tried several things with no luck. What is the right format for adding a setting class to a variable?
Thank you
...
I'm trying to handle AJAX errors in a web application that uses jQuery.
I'm setting up an event handler to deal with AJAX errors like this:
$('body').ajaxError(error_handler);
However, despite the information that's passed to that handler, I'm finding it difficult to determine what sort of error occured.
The two errors I'm intereste...
I have a MySQL table of "people" as part of a web site, for example:
| people_id | firstname | lastname |
-----------------------------------------
| 1 | John | Lennon |
| 2 | Paul | McCartney |
| 3 | George | Harrison |
| 4 | Ringo | Starr |
| . | ....
How do I get the option's value that was selected in a dropdown list when a button is clicked?
<select id="d1"><option value="1">One</option>...</select>
...
I have a jQuery slider with a two handles. I'm looking to lock the first in place based on the second handle.
I've tried checking the values on the slide event and then setting the first handle back to it's lock position but it basically ignores what I set it to and continues to slide.
I have gotten it to work with the stop event bu...
Is there such thing as an inline image caption plugin for jquery?
So a user can someone select a point on an image, and then insert a text caption. Whenever someone hovers over the image, the caption displays.
Flickr has this type of functionality.
...
Greetings. I have a need to have a 'child' modal opended from a colorbox modal.
Form -> anchor -> opens modal ('parent') -> model has another anchor -> open modal 'child'
The problem is that when the 'child' modal closes via the
$.fn.colorbox.close()
Method this seems to close all the colorbox modal windows. I just need to close the...
I have a dashboard type of page that contains a bunch of sections, each providing different data. Getting all the data and then sending the page is slow. From a perceived performance standpoint, I'm thinking the best way to do this is to load the page with each of these sections containing nothing, then use jquery ajax to asynchronousl...
A while back I overheard some very experienced web developer describe an ideal (in his mind) architecture for a portal. I remember hearing these layers:
Database (Using stored procedures)
Application Server (using SOAP or REST)
Web Server (using jQuery to talk to the application server)
The database and application layers made total...
All,
In the following code
<html>
<head>
<link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/latest/jquery1.3.2.js">
</script>
<script src="http://jqueryui.com/latest/ui/effects.core.js"></script>
<script src="ht...
whenever i want to use jquery i just include it in the html header and then use it in my javascript files.
so what do people mean when they say that a framework got built-in jquery support?
and the same thing goes with ajax-support.
...
Is it possible to have a link, once clicked, execute the href target, but not pop up a new window?
...
When QUnit adds the test result details to your HTML document, it thoughtfully wraps the numbers of tests taken, passed and failed inside span elements, each with its own class, to let you recover these three numbers programmatically. However, even though I can see the spans in the finished HTML, I can't find them when I search with
jQu...
This is strange to me. This code:
$(".layover").fadeTo("fast", 0.0);
$(".layover").hover(function() {
$(this).fadeTo("fast", 0.9);
},
function() {
$(this).fadeTo("fast", 0.0);
});
..works just fine on all browsers except IE7 and IE8. It even works (slowly) in IE6 (screams!) In IE7 and IE8 this code will NOT fade out child elements nam...
Hi,
I'd like to know how I can change the blank value of ForeignKey in admin site's forms. There blank is showed as "-----". I wanna replace it by a word.
Does someone know how to do it?
...
Hi All,
I am using ASP.NET Ajax and jQuery. I currently have a formView control that has a submit button on it. It triggers updates on the update panel it is contained within. Currently I have a client side function that returns a confirm(msg), if this is false the form is not submitted, else it submits and the updates are properly trigg...
I have incorporated jCarouselLite with my already working site, however the PREV and NEXT buttons appear, but no IMAGES. The image links are correct.
Any ideas?
jQUERY:
<script type="text/javascript">
//jCarouselLite
$(function() {
$(".slider").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
...
I'm using the popular hoverIntent jQuery plugin for a drop down mega-menu.
http://cherne.net/brian/resources/jquery.hoverIntent.html
I'm attaching it to list items:
$myMenuOfLIs
.hoverIntent(megaConfig)
This works as intended: If I mouse over the LI, hoverIntent is triggered and shows the menu.
Each LI also has an anchor tag ...
I have a simple jquery click event
<script type="text/javascript">
$(function() {
$('#post').click(function() {
alert("test");
});
});
</script>
and a jquery reference defined in the site.master
<script src="<%=ResolveUrl("~/Scripts/jquery-1.3.2.js")%>" type="text/javascript"></script>
I have ch...