When animating in jQuery, what's best practice for firing a callback only when ALL elements are done animating and not for each element?
For example:
$('.someElements').fadeOut('fast', function() {
// dont do this until ALL elements are done fading
}
...
Hi,
I have an issue where my jQuery script reports followign error in Internet Explorer 8
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; MS-RTC EA 2; ...
Hiya,
I have a simple set of images nested in a div tag, I'm just wondering how I can chose an item with a specific index programatically?
var n = new Array();
n.push(a);
n.push(b);
n.push(c);
n[1]; // b
How do I do this in JQuery?
Thanks
...
Hello, I have a dialog form and when I open it I have the button "add a task", I would like to keep this "name", when I open the form from an empty case, but I want to have a button named "edit this task" when I open an already existing task.
I also want to send the form with this button when I push enter key, no matter where I am on th...
I have a web app that is calling a web handler .ashx via jquery POST on the production server it works fine but on the testing and locally all POST requests are much slower. All GET requests are very fast but POST are much too slow. What could be causing that? How can I troubleshoot it?
...
i have two tables. <table id='1'></table> and <table id='2'></table>. When i put this code:
$(document).ready(function()
{
//for table row
$("tr:even").css("background-color", "#F4F4F8");
$("tr:odd").css("background-color", "#EFF1F1");
});
Both the tables got it alternate row colors, which i dont want, i want only to color the...
URL: http://hartford.uconn.edu/director/academic_plan.html
The URL links to an an HTML page that uses 'object' to display PDF document. Which is blocking the jQuery drop down menu. I have tried using CSS z-index property with positioning specified. Also tried setting wmode="transparent" / wmode="opaque" / and other variations but nothi...
Here's the code:
this.Form.find("input[type=checkbox]").click(function(event) {
if ($(this).is(":checked")) {
console.log("checked");
}
else {
console.log("unchecked");
}
});
If the checkbox is not checked, and I click with the mouse, I get "checked". If I trigger it programmatically like $("#someCheckb...
I have a page with several galleries including accordions and sliders. The problem is that the page takes forever to load. Is there a way of wrapping an image in a bit of code or applying a class to it to force it to load only after everything else is loaded?
...
the jQuery
$("#loginform").submit(function(){
$.ajax({
type: "POST",
url: "loginrespajax.asp",
data: $("#loginform").serialize(),
success: function(){
$("#loginform").hide("slow");
$("#loginfo...
I want to use jQuery to make a call to a c# web service called c.ashx which checks whether that username is valid and returns an error message as a string.
What should I put for data: and content type: if the return value of the c# webservice is a string value?
jQuery.ajax({
type: "GET",
url: "/services/CheckUserName.ashx",
data: "...
Hello,
Currently I have an html form - which I call with jquery dialog - to insert new records into a table. But I also would like to update existing records with the same form - using jquery dialog. I'm not sure within the dialog how I access these data values - or pass them in as arguments - and hook them up with the form elements...? ...
I have a some draggables in a list of droppables (1 draggable per droppable li).
When I move a draggable from one droppable to another free droppable, I want to diable the receiving droppable, and enable the droppable it is leaving from.
In firebug the droppable class gets removed – but the functionality of the droppable remains. I...
I'm using tabs, but wondering if it's possible to "refresh" tab content onclick?
...
Hi a newb question:
I have a table with a bunch of buttons like so:
<tr class="hr-table-cell" >
<td>REcord 1</td>
<td>
<INPUT type="button" value="Approve" onclick="" />
<INPUT type="button" value="Reject" onclick="" />
<INPUT type="button" value="Delete" onclick="fnDeletePpAppl(222445,704);" />
<...
Hi all,
I have a jQuery dialog with the following as a parameter:
close: function(event, ui){
$('body').css('overflow','auto');
},
Now this behavior works when the user hits Esc (because closeOnEscape remains true). But I've noticed that when I hit the "X" button and the dialog closes, the close event isn't called?
The same app...
Hi
¿How can I code a Slider in jQueru UI to make it Live?
Here´s the code:
//scrollpane parts
var scrollPane = $('.scroll-pane');
var scrollContent = $('.scroll-content');
//build slider
var scrollbar = $(".slider-vertical").slider({
orientation: "vertical",
value: "100",
slide:function(e, ui){
if( scrollConte...
I got HTML element contains this:
<!--Product Style--> <div style="float: right; padding-top: 4px; padding-bottom: 5px;"> P6C245RO </div> <div style="text-transform: uppercase; font-weight: bold; padding-top: 4px; padding-bottom: 5px;"> Style </div> <div style="clear: both; border-top: 1px solid rgb(216, 216, 216); padding-top: 4...
I have an ASP.NET file upload control which sits as part of a form. The file upload control is on the content page while the form definition is on a master page across the site. I've added multipart/form-enc to the form on the master page.
I'm using jQuery to submit the form as I show a dialog box from jQuery UI.
When I post, no file i...
Anyone knows a way to draw areas in a image, based on points, like draw areas in google maps? Dynamically with javascript.
Editing: what I will do is put a map image on the page and draw an area on the top of a house, etc...
Thanks.
...