Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jquery]

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

0
votes
1answer
85 views

Is my approach to dynamically populating web content ok?

I'm porting my JavaFX application to a web based version, which I'm new to. In my web app the user can search the server database for records. At present I've chosen to present the records in a ...
0
votes
1answer
673 views

How to impersonate user in web app?

I am building an intranet web app with ASP.NET. We are using Windows authentication for granting access to different web pages. We grab your Windows login server side, then build web pages ...
2
votes
1answer
81 views

Are there standards for handling card swipers in applications?

I'm in the middle of creating a web application for a client, and he wants me to integrate magnetic card swipers so his office staff can quickly swipe a card, and load up details for specific patients ...
1
vote
2answers
95 views

How to declare the need of polyfills publishing jquery plugin (and specially for webpack users)?

I've created jquery plugin that is using modern browser's (Node/Element) features. I'm going to publish plugin as npm package. My wish is not to include polyfills code into jquery plugin, bud declare ...
-3
votes
1answer
53 views

Frontend design for rest service

I'm currently working on a rest service writen in c++/qt and i'm also thinking about the future web ui who will use this service. I admit i'm not super expert in html/js since i've always worked on ...
-3
votes
1answer
86 views

Is there a best practice for naming class selectors for identification alone

Is there a best practice for naming class selectors for identification alone? For example, for defining a single amount field with action button, we end up creating several div containers and div ...
0
votes
1answer
163 views

Support i18n in existing application?

I have java/spring based web application with front end in JSP/HTML/JS/Jquery. We already have spring based i18n support. In JSP labels are coming from property files. html/browser download the ...
3
votes
3answers
137 views

How to process large image with a minimum time lag

I am trying to create a web UI for image processing, with some operations similar to what a site like fotor.com offers. However, I have problems to achieve a similar performance. For example, lets say ...
2
votes
1answer
91 views

Why JS MVC frameworks prefer data binding to UI element reference?

When you are using frameworks like Angular, Angular2+, and React, the way you put data in the UI is by binding a property to an attribute of a UI element. On the other hand, when you're doing ...
-1
votes
1answer
415 views

Hosting a static website containing JavaScript/jQuery

I have customized a free downloaded web template as my simple, static website. It contains HTML, CSS, and JavaScript/jQuery. I want to make it live, and am confused from where to host it. The hosting ...
0
votes
1answer
158 views

Using CSS classes to express state

Is it good practice to express the state of an HTML element--such as whether an input's value is valid--using a CSS class? Would it be better practice to use data attributes, the properties of a ...
0
votes
1answer
76 views

Is RSS generation from MySQL server an ideal method for Facebook-like user feed in a website?

Researching this topic took me a long time, mainly because of my lack of knowledge of how RSS actually works, I understand that generating RSS is basically generating an XML file with multiple items ...
3
votes
2answers
231 views

I keep bouncing from “god function” to “tiny SRP functions” how do I break this cycle?

This question is important for me in growing in my technical abilities. I find I swing from end-to-end, like a pendulum, in writing code that is simultaneously DRY yet readable & efficient. And I'...
-1
votes
2answers
203 views

Front end engineering : Best way to implement a step by step check out cart

I have implemented a checkout cart like this : Navigation rules are as follows : User can move to next step only on completing the current step. But he is free to click on the previous tab and edit ...
1
vote
0answers
47 views

How do I protect JS local scope but allow outside customization?

I am creating a javascript application that will live in a library and be used on multiple sites. I am looking for it to have the following features and need some guidance on accomplishing these goals:...
4
votes
1answer
588 views

Visitor pattern. Operating on the nodes of a tree

I am working with jQuery like elements from the cheerio library to manipulate SVG images. These objects represent XML nodes and have a hierarchical internal structure. I am writing a function (in ...
-2
votes
1answer
72 views

Find source of HTML tags added by jQuery [closed]

A page I'm working on has seemingly random anchor tags showing up all over the place, which is causing significant formatting issues. Those tags are showing up in Chrome DevTools but not the page ...
1
vote
1answer
1k views

sending ajax request with setinterval . is it good?

I am developing a website where client needs that any notification should reach as soon as it is created. so i am using setinterval function of jquery and using ajax requests to get the notifications. ...
2
votes
0answers
711 views

Drag and Drop with animations

This is more of a theoretical question which I hope is okay!? I want to code my own drag and drop jQuery plugin, but i'm wondering the best way to go about structuring my code and actually doing it. ...
1
vote
0answers
537 views

Spring MVC - Handling validation errors using the jQuery Validation plugin

Using jQuery validation, I send an AJAX request which is handled by the controller. The controller does send a response, but jQuery fails to insert the respective error message into the DOM. Instead, ...
2
votes
1answer
1k views

How to integrate Jquery validation into ASP .Net web form

I have a simple donation form using Jquery Validation and Bootstrap You can see the simple form here : JSFiddle Currently the form is just simple HTML, javascript, and css. It validates correctly ...
5
votes
2answers
338 views

Stopping client-side Javascript from turning into a monolith

I'm developing some Javascript front-end code using JQuery with some back-end JSON webservices. IDE is Netbeans, and debugging using that and Chrome. Coming from a C++ background I'm used to small ...
1
vote
1answer
84 views

Effective way of using jQuery

I am trying to modify the DOM via javascript. I've been suggested to use jQuery like this var options = $("<div>") .append( $("<ul>").append( $("&...
2
votes
1answer
684 views

Collecting user input to use as query with API

I'm attempting to collect the user's input and execute a search using an API. At this point, I can use the API (ebay search) by typing keywords into the html document- but I want the user to be able ...
1
vote
0answers
72 views

Website that only loads content on modal windows (ajax)

I'm working with a client that only loves Wordpress, so I have to create a theme. The idea of my client is to have an interactive background (meaning there's no other content but the background, the ...
1
vote
1answer
138 views

Is it a good practice to use jQuery object to load scripts onto page?

I am writing a website, and I've come up with quite a few scripts taking up a lot of space and ruining the aesthetics of my code. I came up with the idea of creating one script that fills a div below ...
1
vote
1answer
2k 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
1answer
3k 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 ...
5
votes
2answers
466 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
2answers
559 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 ...
1
vote
1answer
87 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(); ...
1
vote
1answer
64 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 ...
3
votes
1answer
68 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 ...
1
vote
0answers
26 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("....
3
votes
2answers
441 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'...
1
vote
0answers
610 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 ...
2
votes
1answer
841 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 ...
1
vote
1answer
180 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 ...
2
votes
1answer
12k 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
2answers
494 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 ...
3
votes
5answers
538 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 ...
1
vote
1answer
3k 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
vote
1answer
3k 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 ...
5
votes
5answers
17k 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 ...
1
vote
4answers
1k 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 ...
4
votes
2answers
2k 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: ...
2
votes
1answer
1k 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 ...
1
vote
1answer
163 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
4answers
3k 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
1answer
693 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 ...