jQuery is a cross-browser Javascript library that provides abstractions for DOM traversal, event handling, animation, and Ajax interactions for rapid web development.

learn more… | top users | synonyms

-4
votes
0answers
22 views

Should contentType be in my ajax? If yes how to fix it [on hold]

I been trying to figure this one out but i don't seem to find the error but in my script My script $('#Bshift').click(function(){ var isValid=false; isValid = validateForm(); if(isValid) { var ...
0
votes
1answer
48 views

Is it possible to use on focus event on form..?

I tried to find when and on what onfocus works.. Can some one tell me is it possible to trigger event when some one is viewing current form ?? I know it works on input,dropdown and textarea.. but ...
-3
votes
0answers
35 views

I am misunderstanding a jQuery array [migrated]

This code doesn't work var next = $("#orders").find(".next"); if (next.length == 1) { var address = $(next[0]).find(".directionsAddress"); var destination ...
1
vote
2answers
59 views

Many AJAX requests to check domain availabilities [closed]

I've recently developed a website that randomly generates unique names, then checks for their .com availability. In order to do this, I call 3 AJAX requests to a php page where it randomly generates ...
-4
votes
0answers
9 views

Why do I get this error? TypeError: $popover.data(…) is undefined [migrated]

What is causing this to error onhover? The error is: TypeError: $popover.data(...) is undefined. $(function () { var overPopup = false; $('[rel=popover]').popover({ trigger: ...
-1
votes
0answers
12 views

Polyrhythm clapping matrix as table, jquery [migrated]

I wanted to display septuplet over quadtuplet in a matrix like this: 1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4 5 6 7 Only that I can set the matrix up for any n*n-tuplet dynamically. So ...
0
votes
4answers
292 views

How can I keep browser URL secret when editing data?

Suppose, There is a user list. <a href="user/5">Edit</a> <a href="user/6">Edit</a> When a system user clicked to edit a user info. Then it goes to url to browser like as ...
2
votes
5answers
491 views

Securing ajax calls to rest api

I need for my app to consume a rest api service and since I will call it from javascript/jquery i need to expose it to the end user. In this case I would also need to expose credentials to the end ...
0
votes
2answers
219 views

Javascript inline event handling versus external jQuery event handlers

Working on a dynamic website that loads information from a JSON file and then populates the page with said elements. My question has to do with event handling - as of now, I don't see any reason as ...
0
votes
0answers
40 views

What sort of design pattern should I be using here - Tabs Generation

I am fairly new with design patterns, I have been studying them but no practical experience so this is going to be my first try, Graphical representation of GUI is shown in this diagram, Points ...
3
votes
2answers
201 views

Storing session key in a hidden field

Background: I have a question which is outline at Use different local storage between windows. The very high level question is "How can I keep tabs and windows sessions from clashing". Requirement: ...
9
votes
3answers
301 views

Is it ok to include jQuery in a jQuery plugin?

The question jQuery plugin file including the jQuery library came up today on stackoverflow, and I strongly advised against including jQuery in the plugin. I didn't really get any support from others ...
1
vote
1answer
93 views

Clear JQuery Listeners Before Ajax Load of Similar Data

I have a tree structure on the left side of my page from which the user can drill down and select items. Each branch has similar items. When clicking a leaf node, I make a JQuery .load(...) call that ...
8
votes
3answers
1k views

Does it make sense to use jQuery in modern-webkit-only web applications?

I'm lately working on a few mobile web apps for Android (2.3+) and iOS (4+). Their browsers support most of ECMAScript5, which is very powerful, and I wanted to use language features where possible, ...
0
votes
0answers
11 views

How to reveal a stipled line bit by bit going vertically and horizontally

I have one long page. On this page I have a "one" long stipled line. The stipled line goes into different directions, "moving" vertically and horizontally. My question is: How do I approach animating ...
0
votes
1answer
106 views

What pattern to use when you have to hide/show different sections on a form depending on a dropdown value?

For example, let's say you have 8 sections to hide/show and depending on the value of a dropdown, you have to show or hide dynamically from 1 to 8 sections. 1) Is there any better way of doing this ...
1
vote
3answers
226 views

Auto-save user input - the smartest way?

I'm developing a social network website and I'm working with php/mysql/jquery and I want users to have the most user-friendly website experience. That's why I try to avoid a save (submit) button at ...
2
votes
3answers
239 views

Does Jquery basically use CSS3 for animation and effects?

I originally started out this question with "what is JQuery, and how does it work", in terms of all that fancy animation, effects, slideshow plugins, etc. I was uncertain as to how JQuery does all ...
55
votes
5answers
3k views

Is jQuery an example of “god object” antipattern?

I want to ask – I am slowly learning jQuery. What I see is an exact example of a God Object anti-pattern. Basically, everything goes to the $ function, whatever it is. Am I right and is jQuery ...
1
vote
1answer
62 views

filtering data from db

I've taken over a web application that someone else built. It's a pretty simple application that queries ALL records from a db and displays them in a list. They've also provided a way to 'filter' the ...
-4
votes
4answers
4k views

How to not let anyone inspect elements of a webpage?

I was thinking to make some jQuery functions that will use ajax to control mysql. The whole idea is to make separate files of PHP (e.g query.php, addRow.php, update.php and delete.php) provide data to ...
0
votes
2answers
243 views

Clean code principles to jquery [closed]

A jquery code could get very long in lines and become an spaghetti code. It could bring problems like chaining functions or many lines for getting data from HTML elements. Also it may create a clutter ...
29
votes
14answers
9k views

What benefits are there to native JavaScript development? [closed]

Given how much simpler jQuery development is, when compared to native JavaScript, what makes people forgo libraries like jQuery altogether? Is this because jQuery has limitations or it is slow? I ...
0
votes
6answers
3k views

Mixing jQuery with JavaScript

I just asked this question at SO about some bugginess I am experiencing with jQuery and IE8, and someone commented that he was appalled that I would mix JavaScript with jQuery (he has since deleted ...
1
vote
1answer
291 views

How to merge two functions that do same things with different variables

I have these two Javascript functions that are equal except for the variables onClickVoteUp: function (e) { var $target = $(e.target); var upvoted = this.model.get("upvoted"); var ...
9
votes
4answers
3k views

Why is jQuery released under MIT and not LGPL?

Why is jQuery released under MIT and not LGPL? What are the benefits of using MIT compared to LGPL for a framework?
0
votes
2answers
286 views

Attempting to make a Cross Domain AJAX request to a Server I don't own

I'm aware that javascript programs running in a browser are bound to the same-origin policy which prevents them from requesting services from a server that is on a different domain. What I've gathered ...
14
votes
7answers
5k views

When to update jQuery?

When you recommend updating jQuery/jQuery UI? Or in other words: what are the best practices for updating jQuery/jQuery UI? I’m working on a long project that will take at least one more year. In ...
-1
votes
2answers
4k views

Does IE have more strict Javascript parsing than Chrome?

This is not meant to start a religio-technical browser war - I still prefer Chrome, at least for now, but: Because of a perhaps Chrome-related problem with my web page (see ...
3
votes
1answer
233 views

Been working on a project for the last 6+ months. Consultants have been brought in and want to change everything. What should I do? [closed]

Long story short, I have been the sole front end developer on this project since last summer. Consultants have been brought in to help accelerate our velocity. After one day and some knowledge ...
1
vote
1answer
111 views

jQuery event binding management

Given the following elements: <div class="container"> <span class="some-class">content</span> ..n span repetitions.. </div> Given the following .on() ...
4
votes
1answer
367 views

(jQuery) What is wrong with methods such as .append?

tl;dr: What is wrong with the efficiency of methods such as .append() and what can be alternatives to this? Explanation: Hello everyone. I occasionally have to build A/B tests for websites, which ...
1
vote
0answers
329 views

Managing Login Authentication/Webpage session: Can client side javascript/JQuery access either a session variable or json variable in html?

Short version: A variable is stored in a session variable req.session.userName and also in the json sent with res.render('/', {username: value}). How can I access either of those variables from inside ...
1
vote
1answer
180 views

how can I minimize my ajax calls to the server while creating a dashboard

I want to create a dashboard for my website. I have divided my dashboard into different modules. As I understand it, I will have to make many AJAX calls. The different modules are: total number of ...
0
votes
1answer
2k views

Can jQuery be used server side? [closed]

I know that you can use JavaScript server side with node.js, but can we use jQuery for backend as well?
1
vote
0answers
26 views

How can I control properties scope while developing plugin in jQuery

I had a generic task in my project which required changing some elements. Instead of making changes for each element I decided to create a plugin for the common task and then bind plugin with each ...
-2
votes
2answers
200 views

Do I have to distribute my code if I use GPL based jquery controls in my commercial application

I have been thinking about using 3rd party GPL based jQuery controls in our in-house ASP.NET project. As far as the 3rd party license is concerned, I think I can use any jQuery controls in my ...
0
votes
3answers
277 views

Approach to develop an inline editor for enumerated lists

Background Looking to develop a WYSIWYG editor for ordered lists so that people can directly edit lists of instructions on a web page. Problem The contentEditable attribute is woefully immature for ...
0
votes
1answer
346 views

Penny auction concept and how the timer works

I am creating a penny auction site using PHP yii framework. The main consideration of the system is to update the database records of all active auctions (max 15 auctions) with the current ticker ...
52
votes
6answers
50k views

Advantages of using pure JavaScript over JQuery

What are the advantages of using Javascript-only versus using JQuery-only? I have limited experience with JavaScript and JQuery coding. I've added bits and snippets of each to HTML pages but I've ...
0
votes
3answers
677 views

How to approach multiple page form with just one save option

The screen shot shows the magento product upload page. The left nav allows you to switch to different options for the product. Basically each option in the left nav appears as a different page. ...
7
votes
3answers
6k views

Backbone/JQuery, ExtJs 4… is there something else worth looking?

Im currently evaluating a front-end architecture for a big app that will be developed by a team of about 6 developers + 1 web designer so that said, having a robust SVN friendly architecture is a ...
0
votes
1answer
133 views

Declaring many times: script type=“text/javascript”

Trying to clear my HTML code, is it correct if in my web page I declare many blocks of <script> . Like this: <script type="text/javascript"> ... ... </script> <script ...
0
votes
0answers
245 views

Best practice: dynamically handle variable data, multiple file uploads and encoding with jQuery, AJAX, PHP and MySQL

I'm currently writing an e-learing web-application. I'm sorry if this is information overkill but I think it's better to describe it in detail so you get the idea. I have made thought on every point ...
0
votes
2answers
371 views

Changing CSS classes when different strings are displayed in a text element with jQuery [closed]

I'm just wondering if this method would be possible using jQuery HTML and PHP. Basically I have a filtering system were products are listed, some have different attribute values such as Hatchback for ...
7
votes
5answers
1k views

What's the web framework to use on a front-end web application? [closed]

What do you consider a good client web framework to use on interface business application? jQuery? YUI!? Another? Some plugins useful? The application will be use mostly internally replacing a ...
0
votes
1answer
164 views

Would it be the right software engineering system to move from AngularJS-based to jQuery-based or hybrid implementation for webapp?

I am presently working on an AngularJS-based chat webapp, and it polls the server for updates, and then renders them in what is pretty much a straight shot in AngularJS. The result looks appropriate ...
4
votes
4answers
519 views

How to write JavaScript while keeping HTML/CSS out of it

What is / are some recommended ways to write JavaScript as to control behavior of showing HTML on screen, while keeping well-maintainable code? Basically, I started to look for ways to keep HTML/CSS ...
26
votes
6answers
3k views

Tight Coupling Between Javascript, HTML, and CSS: A More Modern Approach?

It's very common to see Javascript bound to certain selectors to find elements, store data, and listen for events. It's also common to see these same selectors used for styling. jQuery (and its ...
3
votes
1answer
465 views

Caching large amount of ajax returned objects

I'm building an application which fetches large amount of items with ajax requests via other application API. It returns me 6k - 30k js objects which are used multiple times across various application ...