Questions tagged [ajax]
AJAX (Asynchronous Javascript And XML) is a popular technique for creating interactive websites, allowing web content to be updated asynchronously by exchanging small amounts of data with the server behind the scenes.
378
questions
0
votes
2
answers
168
views
jQuery + PHP Form Submit and Refresh
Code below successfully processes and submits data to database. Is there anything else that needs to be included / considered?
PHP (note-process.php):
...
1
vote
1
answer
45
views
Is there a more efficient way of using ajax to update search results?
I have a HTML form that allows users to filter their choices when browsing. There are multiple fields (radio button groups) that when the user clicks on them, the search results are updated ...
1
vote
0
answers
48
views
Display tags on the page coming from the server
There is a site with posts that have tags. The site has a search for these tags, that is, you enter words / letters separated by a space and tags are displayed for you by matches. These tags can be ...
0
votes
1
answer
88
views
Ajax to load data for company products without refreshing the page
I am using AJAX script to fetch data from a database. For example, it has
Motorola
Samsung
Apple
as company and I use AJAX to fetch models of it, so that when Apple is selected then it shows Apple ...
0
votes
1
answer
60
views
AJAX script to load data for mobile phones from table
Am using AJAX script to have data fetched from database. For example has
Motorola
Samsung
Apple
as company and using AJAX to fetch models of it. Like when apple is selected then it shows apple ...
3
votes
1
answer
539
views
SetTimeout to populate Javascript Object while a function looped AJAX requests to get data
I wrote some code that will get the name and data of a node or multiple of nodes and put them in an object (seriesData) so I can use said object for a chart (renderChart). I used setTimeout() so ...
1
vote
2
answers
5k
views
JS page loading without refresh
As an exercise, I found a basic way of updating pages without refreshing, partially mimicking the behaviour of SPAs and routing libraries such as React Router. I was not looking for something as ...
1
vote
1
answer
292
views
Chaining backend calls from VueJS method using Axios
This is the first ever bit of front-end code I have ever written, I have tried to adapt the existing call that is there to the backend using axios, so I check on of the response object value using the ...
3
votes
0
answers
266
views
Random Astronomy Photo: React app using NASA's Astronomy Pic of the Day API
Random Astronomy Photo
About the project
This is a React app that generates a random photo from NASA's Astronomy Picture of the Day (APOD) API along with some interesting facts about it. This is my ...
0
votes
1
answer
155
views
Upgrade security and code quality of a website contact form
I have a simple website contact form created back in 2017.
The form was developed using PHP, PHPMailer, jQuery, HTML and CSS.
I would like to make sure the code is up to modern standards and secure.
I ...
4
votes
2
answers
3k
views
using PHP and JS to fetch data for an entry
I need to fetch some data from a mysql database. For that I created get_data.php on the server and a js function to retrieve that data on the client. Is this the proper way to do it? What would you ...
2
votes
0
answers
94
views
Go REST API feedback [closed]
My intention is to create an API as generic and DRY as possible using Go. To achieve this, I have made some more or less common decisions:
To use AJAX call to avoid reloading page when updating the ...
3
votes
2
answers
323
views
PHP blogging application with AJAX loading
I have been working on an online newspaper/blogging application with CodeIgniter 3.1.8 and Twitter Bootstrap 4.
The latest feature added is lazy loading of posts.
From the Static_model (...
2
votes
2
answers
96
views
JS script fetching GitHub API for personal website
I've built a very simple personal website, everything is in a single file because it is very straightforward, but I think the JS script could be better structured. All it does is fetch some repos from ...
4
votes
2
answers
5k
views
Laravel 8 registration and login with user profiles
I am working on a Laravel application (Github repo) that requires user registration and login.
After registration, the users can change their registration details (except password, for which there is ...