Questions tagged [jquery-1.7]

jQuery (version 1.7) is a fast, small, and feature-rich JavaScript library

jQuery version 1.7 was released on August 9th, 2012.

New features

Removed features

  • event.layerX and event.layerY
  • jQuery.isNaN()
  • jQuery.event.proxy()

See also the official homepage and the release notes.

76 questions
5
votes
2 answers

change in .appendTo() in jquery1.9.1

I am trying to understand the change in behavior of .appendTo() api in jquery 1.9.1 version from previous versions. In the upgrade guide it says As of 1.9, these methods(.appendTo, .insertBefore, .insertAfter, and .replaceAll) always return a new…
Annapoorni D
  • 681
  • 2
  • 10
  • 30
5
votes
0 answers

Isotope filter is not working with infinite scroll plugin

I am using isotope filter with infinite scroll plug-in in same page, so that here at the same time both are not working perfectly, some design issues reflecting with isotope jQuery file. When I click more button in scroll, it gets some more post…
Bharathi
  • 531
  • 2
  • 6
  • 18
5
votes
2 answers

Trying to bind a callback by passing in the function throws an error

I just want to fire an event when an input changes value using jQuery 1.7.2 and Backbone.js. Currently I have the following (which works) MyView: Backbone.View.extend({ initialize: function() { this.colorInput = $("", { …
Brandon
  • 65,640
  • 30
  • 189
  • 218
4
votes
4 answers

What does delegation do versus a plain on('click',...)?

What is the different in performance and the handling of these two different jQuery statements: Number One: $('#selector1, #selector2, .class1').on('click', function () { //stuff }); Number Two: $(document).on('click', '#selector1,…
Naftali aka Neal
  • 138,754
  • 36
  • 231
  • 295
4
votes
4 answers

How to attach additional properties for the jQuery Autocomplete select event

My current code looks like this: $(document).ready(function () { $('#txtSearchForTrainingFacility').autocomplete({ select: function (event, ui) { searchCallback(event, ui); }, // select …
Sam Axe
  • 31,472
  • 7
  • 52
  • 80
4
votes
4 answers

reset value of multiple (but not all) form fields with jQuery in one line

Is it possible to reset multiple form fields in one line, or one hit, with jQuery. Note: I don't want to reset all form fields, only a specified whitelist (as below): // reset some form fields …
crmpicco
  • 14,513
  • 22
  • 113
  • 191
3
votes
3 answers

Sum of array of integers (strings?) without losing decimals

Given: I have elements with values of integers floats (thank you, Pointy) up to two decimal places (such as: 1.50 and 2.25). Goal: Collect the values of several elements and add them together. (such as: 1.50 + 2.25 = 3.75…
Alaric
  • 229
  • 1
  • 12
3
votes
2 answers

jQuery Promise for Ajax call

I think/hope I am missing something regarding the promise programming paradigm. I run the following code on jQuery because I want to get the data from URL_1 and then (on success) to get the data2 from URL_2. The other variables come the the context…
Panais
  • 351
  • 3
  • 12
3
votes
5 answers

handling on no argument in javascript functions

I have little experience in javascript but in other programming languages the following is possible, to set a default value for a missing parameter in a function. For instance lets say i have a function function foo(a , b) return a + b { I…
pyCthon
  • 10,295
  • 16
  • 62
  • 122
2
votes
1 answer

jquery: unable to print ajax response header (Jquery 1.7.1)

$.ajax({ async:false, type: 'POST', url: itemURL, success: function(data,status,jqXHR) { responseObj = data; console.log('success function…
Satish
  • 6,337
  • 7
  • 39
  • 62
2
votes
2 answers

jQuery 1.7 .on() and Dynamic Form Catching

I'm having a problem with jQuery 1.7's latest on() function. I'm moving all of my existing live() calls to the new on() function. In the past I used live() whenever I created a new element or appended some markup from AJAX. With jQuery 1.7 If I…
steveneaston
  • 259
  • 1
  • 4
  • 10
2
votes
2 answers

Is jQuery BBQ-Plugin still working with JQuery 1.7x?

Short question, but couldn't find a hint to that anywhere: it seems that the jQuery BBQ Plugin is only tested to work with jQuery until v1.4.2. Now the current version of jQuery is v1.7.1 and i wonder if the Plugin will be still working? Haven't…
Stefan Müller
  • 157
  • 1
  • 2
  • 10
2
votes
2 answers

jQuery: Does `.off()` have the same limitations as `.die()`

I see in the documentation for .die() it says this: In order for .die() to function correctly, the selector used with it must match exactly the selector initially used with .live(). Does the new method in jQuery 1.7 have this same…
ajbeaven
  • 8,509
  • 11
  • 74
  • 109
2
votes
1 answer

Uncaught Error: Syntax error, unrecognized expression in jQuery 1.12.4 from 1.7.1js

$("body").on("click", "$[id *= ddlHour]", function () { ValidateDate(); } ); This is working fine in jQuery 1.7.1 but when I upgrade to 1.12.4 it gives the following error: Uncaught Error: Syntax error, unrecognized…
2
votes
2 answers

jQuery 1.7.2 AJAX call throwing NS_ERROR_XPC_NOT_ENOUGH_ARGS error

I have an issue with jQuery 1.7.2 and the ajax function, in that when I call the code below I get the following error in Firefox Firebug console: NS_ERROR_XPC_NOT_ENOUGH_ARGS: Not enough arguments [nsIDOMLocation.replace] var weights= new…
crmpicco
  • 14,513
  • 22
  • 113
  • 191