0
votes
1answer
61 views

Switching between tabs inside of a web application

I'm making a web application for the administration of a restaurant kind of type. The purpose of this application is to make customers, and the orders of those customers, which has products in it, ...
4
votes
1answer
40 views

Using/storing server-side data on the client side

I've a slot booking script which is as follows: My Current Algorithm A calendar is shown to the user The user clicks on a date I make an ajax call to determine if at least 1 slot is booked on the ...
2
votes
0answers
96 views

Update database, refresh the page to show changes, show a success message

Follow up question for: Update database, reload page then show a success message I have a table of articles, in each row is a button to activate / deactivate the ...
3
votes
1answer
189 views

Update database, reload page then show a success message

I have spent a long time trying to find a way to do the following: Update a MySQL database with AJAX Reload the Page to show changes Show a success message I think I have finally found a way! ...
4
votes
1answer
84 views

Driver License Input Form

I am willing to switch to OOP concept, but before working on that I would like to know whether what I have working so far is OK, or if any major change is required? For every form I create 3 files: ...
1
vote
1answer
64 views

Display AJAX response from PHP

I have used jQuery AJAX for my development. Below I have added example code for AJAX request and response. ajax.php ...
2
votes
2answers
81 views

Ajax Class Efficiency

So I wrote this class to handle my ajax calls simply: ajaxCon.php: ...
4
votes
1answer
302 views

jQuery Load More Plugin

This is a simple load more plugin, built for teaching purposes. For this reason, it's not pretty in terms of output. I'd like to know if this can be improved, or if anyone can spot any major problems ...
4
votes
1answer
253 views

PDO prepared statement - binding variable number of values

Please let me know if I have over/under explained my question :) HTML table row - the numerals from each id attribute, in this example "408" and "409", are the database tables primary ID numbers, one ...
3
votes
1answer
104 views

Best practice for generating jQuery dynamical content

I am new user of CodeIgniter and I am trying to build an application that there are lots of jQuery dynamical content. Below I provide a code that I am using in order to be precise. The code below is ...
1
vote
0answers
115 views

Correct MVC in CodeIgniter

In my CodeIgniter I have a Login controller that load this view: ...
2
votes
3answers
501 views

How to improve this current contact form?

I have just started learning how to build websites, and I have been experimenting by creating a contact form. Here is what I currently have - can anyone suggest and recommend ways enhance my current ...
3
votes
2answers
1k views

Loading content in page via jQuery

I'm doing a web site in CodeIgniter and I'm loading the content page via jQuery, but I don't know if this is a good practice or not. Could I improve it? jQuery: // Another question here: how can I ...
0
votes
0answers
41 views

storing the data twice on the second occasion

I use php codeigniter, jquery ajax and datatables, this image is result when first save: and this the second result when I click add button: this my code in javascript: ...
3
votes
1answer
117 views

Dynamically-loading interactive table

I've got a page on a website that shows a table, and upon clicking on a row in the table, it can dynamically load in more results. I am new to jQuery though. index.php page: ...
1
vote
1answer
58 views

Refactor to provide for multiple instances on a single page [closed]

I have a script that separates the date from a datepicker into day, month, and year. It works fine when there is one form on the page but not when there is a second one (presumably due to the id being ...
1
vote
2answers
122 views

Creating new CSS element everytime database updates

I have created a function using jQuery Ajax which create a new CSS element whenever I update the database using a form. Is it ok? If not, hat can be the best method to do it? ...
1
vote
1answer
2k views

PHP “web service” and jQuery ajax

I've been writing classic ASP.NET web services for a while now, and this is my first time writing a PHP based web service. I'm rather new to PHP as well. In ASP.NET, you directly call the web method ...
2
votes
1answer
627 views

Refactor jquery date split into day month year

I'm changing an html datepicker value (#date) into 3 separate values in order to post them to a booking engine. I've managed to get it to work but there is a lot of ...
0
votes
1answer
620 views

Form validation - security and input specification

So I'm working on a register form and I have four fields: name, username, email and password. I pick up the values of these fields in jQuery and depending on if all the fields are filled, I pass them ...
2
votes
1answer
335 views

How should I re-factor this code?

In my system there are 3 main functionalists. Add users to database Delete users from database Updater users This is the screenshot in my UI When clicking on the button of add new user, ...
1
vote
1answer
7k views

My method of php ajax pagination

After a long search of simple php-jquery script from which i can pick the concept from,i gave up.The scripts i found were not very clear so i decided to make my own.This is the repo ...
2
votes
1answer
4k 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 ...
2
votes
1answer
111 views

Optimize Clock Update Code To Prevent Bottleneck Resulting In Time Lost

I use the following PHP Code to output the user's local time and the servers time (office time). $local_time and $remote_time ...
2
votes
1answer
89 views

I've embedded several PHP/HTML/Javascript in one page. How can I improve on the efficiency/performance?

Just a quick preface, I'm not a web developer. I'm simply doing this as a favor for a friend. My goal is to be done with it as quickly as possible, but still not have the coding be horrendous. With ...
0
votes
1answer
475 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 ...
1
vote
1answer
99 views

jquery.php plugin security optimization (backend)

This is the backend to my jquery.php plugin which handles requests to make function calls and execute PHP code that is sent in various forms. After requests are processed they're sent back to the ...
2
votes
3answers
290 views

Would a plugin for calling PHP functions within JavaScript prove useful?

So basically jqueryphp is a jQuery plugin that allows you to call any PHP function within client-side JavaScript: jqueryphp@github I wrote it as a response to projects such as PHP.JS and other ...
2
votes
0answers
600 views

My PHP AJAX bridge to jQuery library [closed]

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
3answers
147 views

Getting JSON and putting it in a table using jQuery and PHP

How can I improve this code? jQuery: ...
2
votes
2answers
604 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? ...
2
votes
3answers
622 views

CodeIgniter AJAX messages submission security issue

I have a small social networking site built in CodeIgniter. Any registered user can send messages to others by visiting their profile. Today I noticed that one user sent bulk messages to 200 users. ...
0
votes
1answer
95 views

How can I improve my search script? [closed]

I have this search script on my page which search through the displayed table. The table is displayed with PHP from a database. It is actually a list, and this list is sorted out alphabetically with ...
4
votes
1answer
554 views

Ajax form validation

This is my first ever attempt at Ajax form validation, and everything works as expected, the final true example will hold a lot more input fields than in my testing scripts which are below. The file ...