Tagged Questions
5
votes
0answers
165 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 ...
4
votes
1answer
275 views
My jquery, ajax, php scripts and files, room for improvement on ajax form validation?
Ok this is my first ever attempt at ajax form validation, and everything works as expected, the final true example will hold alot more input fields than in my testing scripts which are below.
The ...
3
votes
2answers
146 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 ...
2
votes
2answers
433 views
Is this spaghetti code already?
I post the following code writen all by hand. Why I have the feeling that it is a western spaghetti on its own. Second, could that be written better?
<div id="form-board" class="notice" ...
2
votes
2answers
54 views
Best way to structure PHP AJAX handlers?
I'm just getting started with AJAX and am unsure of the best way to structure a PHP AJAX handler. I created a PHP file, ajax_handler.php, and the way I have it structured now is just a bunch of ...
2
votes
2answers
281 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 ...
2
votes
1answer
439 views
Polling script to determine the continuous time a user has been connected
I've been asked to keep track of how long a user has been connected to a site without interruption.
So far the solution I've come up with is to use ajax to poll the site every now and then to check ...
2
votes
1answer
73 views
Passing a large amount of diverse information in JSON using Symfony 2.1 and Doctrine 2
For a project I need to give a load of diverseinformation in JSON format. All the information will be used on the same page so a single call would result in the least overhead. The information all ...
1
vote
2answers
43 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 ...
1
vote
2answers
84 views
Better way to Rewrite?
The output result is perfect to what I wanted, but takes a tad bit too long to pull data then render into a graph. Is there a better way to rewrite this code to speed up the process? I'm all ears ...
1
vote
1answer
38 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
278 views
Jquery AJAX and PHP sessions
I have been working with PHP sessions and login protected pages for some time, but i want to start using some AJAX for managing some actions inside login protected pages (easy way with Jquery). I am ...
1
vote
1answer
264 views
Improve the performance of jquery/php generated map
We are building a interactive tile-based (32x32 px) (game) map where the user can move around. However we experience lag (some sort of a delay on the movement) and we need to work around this problem. ...
1
vote
1answer
431 views
mixed AJAX/Javascript form validation check
I've got a form, for which the "Send" button should only be available, upon each form field being validated. For most of my check, I call a function checkFormValue() which is a function gathering all ...
0
votes
1answer
99 views
Authentication system using AJAX
I'm building an authentication system using a combination of PHP, MySQL, jQuery, and AJAX. The way I'm doing it right now is I have a form that takes in a username and password. When the user clicks ...