Tagged Questions
2
votes
1answer
56 views
My login with AJAX and PHP
In your opinion, do I need to do all these validations. I thought to do well and stay safe but I seriously raises the question if it isn't slower.
jQuery code
$(document).ready(function () {
...
1
vote
2answers
65 views
Using AJAX to look up MySQL value using two dropdown inputs
I have a list of cities, and a set of "travel time" between any given two cities. The "travel time" is fixed and not necessarily dependent on absolute distance between the two cities, and it currently ...
-2
votes
0answers
28 views
Is it a good Idea to upload Image after encoding it to base64 to enable fileUpload via Ajax? [closed]
I want to upload different files via Ajax post to my asp WebService. Is it a good idea to convert the file into base64 encoding and send it to Asp and convert it back again to byte array?
2
votes
0answers
95 views
Display progress bar to show async. request status using JQuery
Instead of using ProgressBar plugin, I've below script to display the progress bar for async. requests on the page. Could anyone provide any feedback on this esp. if there will be any issues like ...
1
vote
0answers
46 views
Angularjs stream ajax responses?
The following service repeatedly queries urlToStream with paging parameters and appends the results to an array in a scope (passed in as a parameter). It works but feels dirty (not the least of which ...
1
vote
1answer
36 views
How Can I Improve my Image Preloading Script?
I wrote an infinite scrolling scrolling plugin for an app I'm developing. When requesting the second 'page' from the server, I loop through each image, and five it a very basic onload function.
// I ...
0
votes
2answers
138 views
AJAX response DOM element selection
I GET a HTML response from AJAX over cors and the response is a table. Each category has its title and sub elements. The title names vary quite a bit and are likely to change in the future. The sub ...
3
votes
1answer
214 views
Filtering and Sorting jQuery Ajax response
What I'm trying to accomplish here is to pull a table of open employment positions with AJAX, filter out the garbage code that comes with it, put each <tr> from the response into its correct ...
-1
votes
1answer
82 views
Why I need to use 2 functions, but not only one [closed]
I paste all of my code because it might have a connection with the function I am asking for.
I had some problems with my parseJSON() function and someone helped me to make it work. Now I don't know ...
3
votes
2answers
148 views
Better way to return data via AJAX?
Let's say I have three files: a page that is used for searching data called search, a file that handles requests called controller, and a file that has functions which the controller calls based on ...
0
votes
0answers
170 views
Emulate jQuery's AjaxStart and AjaxEnd for native javascript
This is a javascript code that will be injected into every page a .NET WebBrowser component navigates to. This means the code needs to be compatible with IE 7+ only. The code will be injected and run ...
5
votes
0answers
169 views
My PHP AJAX bridge to jQuery library
I've been working on this library for 2 years now and using on many websites with great success. And I decided to make it public, I can assure this is the best jQuery <=> PHP bridge library there ...
3
votes
2answers
473 views
How are my javascript module pattern and promise pattern?
I'm working on an app that downloads some SVG paths from a server and draws them.
Anything in here is open to critique, but specifically I'd like to review my use of a module pattern and my ...
1
vote
2answers
123 views
Optimize JQuery/JavaScript Link Checker
Below is a script I've written that uses AJAX to check if all links on the page are alive or dead. Could this be modified to be more efficient in any way? Thank you very much.
...
2
votes
2answers
287 views
Review My Custom Streaming Application - AJAX / TwitchTV
So I created this custom application and ported it into a few websites. It uses the TwitchTV API and pulls in active streams and the viewer count. The problem I run into is when the list gets so big ...