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
0answers
22 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 = ...
-1
votes
0answers
24 views
what to consider when validating a text area with jQuery?
I'm creating a contact form for my website and not sure what are the things I should check during validation for comment section other than empty text area.
<div class="form-group note">
...
2
votes
2answers
67 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 ...
0
votes
0answers
31 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
65 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
51 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
2k 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
80 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
377 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
378 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
476 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 ...
2
votes
5answers
3k 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
4answers
363 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
...
3
votes
2answers
406 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:
...
1
vote
1answer
300 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 ...
0
votes
0answers
50 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
...
0
votes
0answers
13 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
128 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
408 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 ...
1
vote
1answer
116 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 ...
0
votes
2answers
491 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 ...
1
vote
2answers
566 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
1answer
457 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 ...
0
votes
2answers
718 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 ...
3
votes
1answer
252 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
142 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
773 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
553 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
271 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 ...
1
vote
0answers
27 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 ...
-1
votes
2answers
318 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
1answer
140 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
371 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
512 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 ...
1
vote
1answer
197 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
614 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 ...
2
votes
3answers
265 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 ...
11
votes
5answers
1k views
Is it beneficial to study past the basics of a core language when the primary goal is to rely on its framework? [closed]
Please keep in mind this is not another 'How much [insert programming language here] should I know before moving onto [insert framework here]?' What I'd like to know is how beneficial is it to learn ...
3
votes
1answer
718 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 ...
0
votes
1answer
561 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 ...
0
votes
1answer
500 views
How to handle mutiple API calls using javascript/jquery
I need to build a service that will call multiple API's at the same time and then output the results on the page (Think of how a price comparison site works for example).
The idea being that as each ...
0
votes
1answer
395 views
Should I use my own public API on my site (via JS)?
First of all, this question is far more different other 'public api questions' like this: Should a website use its own public API?, second, sorry for my English. You can find the question summarized ...
0
votes
2answers
605 views
Javascript, JQuery and now AngularJS What is happening? [closed]
I have been away from computers for about 3 years and starting to get back into programming. Lots has changed in resources and help sites available on the web especially the evolving StackExchange ...
3
votes
1answer
241 views
How to handle asynchronous calls in an offline application
I'm using an offline application's javascript API and I'd like to know if I can use deferred objects to handle the callbacks. The API calls do not use HTTP, the calls are to and from the applications ...
0
votes
1answer
447 views
What is the proper way to extract and pass parameters to call javascript functionality from my PHP page?
This is my situation: I have a search results page in PHP where most of the logic resides in a javascript file in order to avoid refreshing the page every time an action is performed. The first thing ...
2
votes
0answers
361 views
MVC 5 - Best practice for handling dates inside and outside the USA
I have an MVC 5 application that will be used world wide. A number of the pages in the app will require users to enter dates. I'll be using the jQuery datetimepicker plug-in to allow the user to ...
1
vote
0answers
47 views
What syntax should I use to execute functions in jQuery Terminal?
I want to add feature, to jQuery Terminal, that will allow to execute commands from the server. Right now it only have formatting syntax that look like this:
[[<list of one letter styles> ; ...
3
votes
3answers
1k views
jQuery - When to Bind Event Listeners?
I'm building a medium-sized "single-page" JavaScript application using jQuery. If you include all possible functionality of the application, there are 134 click bindings.
Since most of the content is ...
-3
votes
1answer
152 views
How to make your JavaScript private? [duplicate]
I wanted to know if there is a way to make your JavaScript private from client side?
-4
votes
4answers
6k 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 ...