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

-3
votes
0answers
16 views

how to go to specific month of the year when angular ui-calendar loads? [on hold]

I am working with UI.calendar it loads the current month by default. how i can set initial custom month rather then current month to which calendar load. I didn't find enough doc talking this problem ...
-1
votes
1answer
144 views

How does jQuery work?

What exactly happens underneath (I know it changes the paragraph tag's HTML when the circular div is clicked) when I run this piece of code? Could you please explain the callback function as well. &...
-1
votes
0answers
49 views

Writing efficient JS for website

Just a question really about best practice and to get a better insight in how to code in a more efficient manner. Currently when working on a website I'll have my custom.js file that usually looks ...
1
vote
3answers
713 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 ...
1
vote
5answers
2k views

ASP vs javascript vs jQuery vs User Controls vs AJAX

Increasingly when developing sites I find myself utilising more client side technologies such as Javascript, jQuery and AJAX. For three different pages I measured the size of the HTML sent to the ...
0
votes
0answers
18 views

Ajax request showing browser response data but how i can var_dump data in controller function in laravel

Route File Route::post('/like',[ 'uses'=>'postController@postLikePost','as'=>'like' ]); Ajax Request File var token = '{{Session::token() }}'; var urlLike = '{{ route('like') }}'; $(...
-1
votes
0answers
64 views

Is there any function to convert value to number format in JavaScript? [migrated]

Is there function to convert a value to number format in JavaScript? Ex: 10006.1056 to 10,006.16
0
votes
1answer
69 views

strategy to display value for a html select

Strategy to display value for a html select I have a spring boot, application. On the client side, I use JQuery I would like to know the strategy to display "static value" for a html select. ...
-2
votes
1answer
81 views

How to incoporate jQuery UI into ASP.NET MVC 5 project that is on an offline system? [closed]

I am having some issues trying to incorporate jQuery UI into my project. I cannot use Nuget or anything else that goes to the internet, so I have downloaded the development package from the jQuery UI ...
1
vote
2answers
97 views

Planning to convert PDF to JPG, Annotate the image, Reconvert to PDF

I have a feature where scanned exam answer books need to be digitally annotated and marked. The scanning portion of the work is with another vendor who refuses to scan in any format other than PDF as ...
11
votes
6answers
2k views

What made jQuery so popular? What is offers that other JavaScript libraries don't?

According to W3Tech, this link, this link, this link, and many other sources, jQuery is really becoming what IE experienced in the world of web browsers (gaining more than 80% of the market for a ...
0
votes
1answer
42 views

Caching and Website performance on IOS VS PC

I have a website that pulls from a database to display images/names/misc info. The pages are used on both IOS Devices (iphones,ipads,ipods so far) and on PCs using internet explorer and Safari/Chrome ...
0
votes
1answer
41 views

jQuery, deferrers and “if” conditionals

How could I simplify the following code? I suspect that it can be simplified by using the $.Deferred class, but I don't know how. if (condition) { $.get('url').done(function () { done(); ...
2
votes
1answer
41 views

WebForms, JQuery and the DRY principle

I'm working on a WebForms application that has several pages. Each page currently loads JQuery in a script tag in the head. A colleague I'm working with insists this is WET code and a violation of ...
0
votes
0answers
23 views

Optimizing/monitoring number of objects created by $(this)

I have an application where a lot of objects are created and referenced by $(this) similar to the following: someFunction() { var myName = $(this).find(".name"); var myTown = $(this).find("....
2
votes
2answers
86 views

“web-enabling” an existing C++ app

I've got a Windows application coded in C++. I want to provide a web-based interface to them, with a view to porting them to embedded Linux systems. The web pages are a series of dynamic 'status pages'...
0
votes
0answers
52 views

Web browser resetting connection

I have a web application that is hosted on an embedded device. This device has its own basic web server that can serve content just like any other web server. The web application in question is ...
1
vote
1answer
108 views

Building a real-time web-app with Ajax .post()

Usually, real-time web-apps are built with websockets, right? Well, let me be radical here - what if I used Ajax? Okay, okay, I know it has its limitations. You can't build Agar.io, sending data ...
0
votes
1answer
57 views

Summing values from JSON end point based on category [closed]

I have a JSON end point for projects in a county. I am able to call a list of any of the object properties. What I want to do is to add together either all the values of budget property or the ...
1
vote
1answer
3k views

Rendering partial View in MVC

i am not so familiar working with partial Views. The reason behind that is that I really do not have the basics of Jquery/JS/Ajax. But I recently found through some SO post that a partial view can be ...
1
vote
0answers
95 views

ModelState Validation vs JQuery vs Remote

I was stuck with some validations for quite a while. I have been thoroughly searching the internet to find ways to apply the validations I require. I came across many methods for validations even ...
2
votes
5answers
390 views

Are clean coding rules less relevant for large open source projects? [closed]

I've been reading Robert Martin's book "Clean Code". One of his core tenants is to remove unnecessary comments and strive to create meaningful variable/method names that are self documenting. Some of ...
0
votes
1answer
564 views

Using SessionStorage to keep client side state

I am working on an web app and I would like to keep the client data in the LOCAL session storage. I can't use the servers session and the app will only call some existing rest WS.I have to develop ...
-1
votes
1answer
603 views

How to update ui lively without refreshing page [closed]

I am doing a web application using struts2 framework. After user login, I show a dashboard about the current status of the user. To show the Dashboard UI(JSP), I used to get the information from the ...
9
votes
4answers
5k views

Anonymous function vs. separate named function for initialization in jquery

Let's say we have some code that is used to initialize things when a page is loaded and it looks like this: function initStuff() { ...} ... $(document).ready(initStuff); The initStuff function is ...
0
votes
4answers
394 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
4k 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 ...
3
votes
2answers
462 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
308 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
346 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
1answer
132 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
566 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
267 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
150 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
7k 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
590 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 ...
32
votes
14answers
11k 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
483 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 ...
10
votes
4answers
4k 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
918 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 ...
16
votes
7answers
6k 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 ...
0
votes
2answers
7k 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 https://code.google.com/p/...
3
votes
1answer
254 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
153 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() $('.some-class')....
4
votes
1answer
955 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
587 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 ...