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.
214 questions
1
vote
2
answers
281
views
Should I stop using jQuery and create custom abstractions?
I'm a junior web developer. My current work is on a form-based server side web application. It was set up using jQuery. I'm now the primary person working on it. In a previous job, which was more ...
-4
votes
2
answers
2k
views
Implementing heartbeat in terms of best practice
I have a web application that is running under .NET framework and that is using JS/JQuery on the client side. I am the owner and the only developer of this web application, and it is not totally under ...
1
vote
1
answer
78
views
Does it make sense to use reflection or to hard-code controller parameter names in JavaScript?
So I have made a pull request to change this code:
//Controller:
...
[HttpPost]
public ActionResult Unauthorize(int userID, int permissionID)
{
...
2
votes
1
answer
552
views
handle file downloads from the server
I am wondering if the following would be a good technique to allow user to download files from the server in the below scenario:
Info about the scenario:
User logs into a system (HTML,JQuery and CSS,...
0
votes
1
answer
3k
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 ...
1
vote
2
answers
206
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
1
answer
141
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 ...
4
votes
3
answers
437
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 ...
-1
votes
1
answer
1k
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
1
answer
98
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 ...
-1
votes
2
answers
234
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 ...
5
votes
1
answer
943
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 ...
1
vote
1
answer
4k
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. ...
3
votes
1
answer
2k
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 ...
1
vote
2
answers
144
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(
$("&...
1
vote
0
answers
98
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
1
answer
3k
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.
&...
5
votes
2
answers
627
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.
...
1
vote
1
answer
107
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();
...
3
votes
1
answer
104
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
0
answers
1k
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
1
answer
3k
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
2
answers
2k
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 ...
1
vote
1
answer
4k
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 ...
7
votes
6
answers
25k
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 ...